WordPress.org

Ready to get started?Download WordPress

Forums

WP eCommerce
[resolved] [Plugin: WP e-Commerce] How do display featured items on homepage? (16 posts)

  1. etn
    Member
    Posted 3 years ago #

    How do display featured item on homepage when I mark item as featured (little star)?

  2. Justin Sainton
    Member
    Plugin Author

    Posted 3 years ago #

    Hi etn,

    I believe you just need to go to your Store Settings page (It's called "Store" under the "Settings" tab), click on the Presentation tab.

    The very last setting under "Product Page Settings" says 'Display Featured Product above Product Pages:'. You want that to be marked "Yes".

    That should do the trick. Mark this as resolved or just post back if that does the trick or if you have any other questions.

  3. Aakriti
    Member
    Posted 2 years ago #

    Hello Justin,

    By marking "Yes" enables the featured products to Product Page not in homepage. Can you please suggest anything to bring it to the homepage.

  4. Justin Sainton
    Member
    Plugin Author

    Posted 2 years ago #

    Ahh, sorry, misunderstood your question.

    There is a function called wpsc_display_featured_products_page() that you can use to output the featured product. It's not the most elegant thing in the world (read: we will likely be refactoring it eventually), but if you throw that function in your home page template file (Might be home.php, index.php or front-page.php depending on your theme), it should do exactly what you want.

  5. Aakriti
    Member
    Posted 2 years ago #

    Thanks for the response, will try this...

  6. Aakriti
    Member
    Posted 2 years ago #

    Hello Justin, am new to WordPress and not being able to display the featured products in home page(using the function wpsc_display_featured_products_page()). Can you help me in some more ways...

  7. Justin Sainton
    Member
    Plugin Author

    Posted 2 years ago #

    Feel free to email me your WP admin credentials at justinsainton at gmail dot com and I'd be happy to help more.

  8. Aakriti
    Member
    Posted 2 years ago #

    Hi Justin,

    I could display the featured product to my home page just by copying the query of the function wpsc_display_featured_products_page() to index page,
    I don`t know, is it the right way or not ?
    But I have my work done.

    Thanks for the response and support

  9. Justin Sainton
    Member
    Plugin Author

    Posted 2 years ago #

    That should work just fine! I'd actually prefer that method myself. Glad to hear it's working for you.

  10. Aakriti
    Member
    Posted 2 years ago #

    "Sorry for being so specific and my increasing expectation from you"

    I am trying to integrate Shipping module, UPS to my shopping cart which is already present in WordPress 3.3
    But while integrating it,there's error message
    "Sorry, online ordering is unavailable to this destination and/or weight. Please double check your destination details."

    Any suggestion would be grateful...

    I did get the response from UPS in an array as
    Response from UPS:: GetQuote ::End DEBUG OUTPUT:::: GetQuote ::DEBUG OUTPUT::
    Arguments sent to UPSArray ( [username] => QWFrcml0aQ== [password] => V29yZFByZXNzQDEyMw== [api_id] => [account_number] => [negotiated_rates] => [residential] => 1 [singular_shipping] => 0 [insured_shipment] => 0 [DropoffType] => 01 [packaging] => 01 [currency] => USD [shipr_state] => NY [shipr_city] => New York [shipr_ccode] => US [shipr_pcode] => 10212 [shipf_state] => NY [shipf_city] => New York [shipf_ccode] => US [shipf_pcode] => 10212 [units] => LBS [weight] => 15 [dest_ccode] => US [dest_pcode] => 10212 [dest_state] => NY [cart_total] => 477 )

  11. Justin Sainton
    Member
    Plugin Author

    Posted 2 years ago #

    I'd highly recommend editing your previous post, as it appears to have information that should stay private. However, based on my knowledge of the UPS API, it looks like you may have input the incorrect username and password. That's a possibility, also, I would make sure all of your shipping configuration and weights are properly entered.

    Check out the docs for UPS shipping here - http://docs.getshopped.org/documentation/ups-shipping/

  12. Aakriti
    Member
    Posted 2 years ago #

    Hi Justin,

    Thanks for the response and these are dummy information.Should it be keep private ?

  13. Justin Sainton
    Member
    Plugin Author

    Posted 2 years ago #

    Should be fine as long as it's not your actual info.

  14. atreidex
    Member
    Posted 2 years ago #

    Hi Justin,

    wpsc_display_featured_products_page() doesn't work for me neither.
    Can you please paste here the snippet of code you're using?

    I'm trying to show the most recent featured product on the homepage. I tried to do it the usual way, retrieving the custom post types marked as sticky but i don't know how to display all the wp-e-commerce custom fields like variation boxes, buy buttons, fancy notifications etc. I can, of course, list the featured product on the homepage and redirect the visitors to the product page to make the purchase but this 2-step process makes the things difficult for the average internet user.

    $sticky = get_option( 'sticky_posts' );
    $args = array(
    	'post_type' => 'wpsc-product',
    	'posts_per_page' => 1,
    	'post__in'  => $sticky,
    	'orderby' => 'date',
    	'order' => 'DESC',
    );
    $featured_query = new WP_Query( $args );

    Above is the query that will retrieve the most recent featured product.

    Thank you a lot,
    Ciprian

  15. bensinclair
    Member
    Posted 2 years ago #

    Hi Ciprian, your code worked by I had to change the first line to:

    $sticky = get_option( 'sticky_products' );

  16. moderni infotech
    Member
    Posted 2 years ago #

    hi..
    how i used featured product on homepage or frontpage?
    it doesnot worked when i click on star sign for featured product? why?
    i couldn't understand why featured is used?? please, anybody answer my questions?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic