Support » Plugin: WP eCommerce » [Plugin: WP e-Commerce] How do display featured items on homepage?

  • Resolved etn

    (@ecommercetemplatesnow)


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

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Justin Sainton

    (@justinsainton)

    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.

    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.

    Plugin Author Justin Sainton

    (@justinsainton)

    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.

    Thanks for the response, will try this…

    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…

    Plugin Author Justin Sainton

    (@justinsainton)

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

    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

    Plugin Author Justin Sainton

    (@justinsainton)

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

    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 )

    Plugin Author Justin Sainton

    (@justinsainton)

    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/

    Hi Justin,

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

    Plugin Author Justin Sainton

    (@justinsainton)

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

    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

    bensinclair

    (@bensinclair)

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

    $sticky = get_option( 'sticky_products' );

    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?

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘[Plugin: WP e-Commerce] How do display featured items on homepage?’ is closed to new replies.