Product detail page

ravi1makhijaravi1makhija Member
in General edited February 2012
Hello Sir,

I want to have product list and product detail page as per links given below. I have implemented product list and product detail page using variation but it is creating problem.

product list page : www.gurutechnolabs.com/demo/armedworkwear/products.html
product detail page : www.gurutechnolabs.com/demo/armedworkwear/product-details.html

Please let me know how to implement the image slider which is shown on product detail page. Currently i have made it using radio button type variation. But it is reflecting on product list page also. I dont want to display there.

Please help me to implement this ASAP.

Thanks
Ravi
Comments
  • sparkwebsparkweb Member, Integration Developer, FoxyShop, Order Desk
    edited February 2012
    Hi Ravi,

    So you need to have one variation removed on the outside page? Are these really different styles? Since these are just different views, why don't you use the image slideshow and just show them as tiny images that expand when clicked on?

    In order to hide one variation on a certain type of page, you'll need to use WordPress's callbacks to take it out. First, on your product loop page, you'll do this before the $product is initialized:
    global $hidestyle;
    $hidestyle = 1;
    

    Then in your functions.php file, do this:
    add_filter('foxyshop_setup_product_info', 'my_product_setup', 10, 2);
    function my_product_setup($product_array, $product_id) {
    	global $hidestyle;
    	
    	if ($hidestyle) {
    		unset($product_array['variation']['Style']);
    	}
    	
    	//Always return the new, complete array
    	return $product_array;
    }
    

    And that might do the trick

    EDIT: The forum is eating my array code so use this instead: http://www.pastie.org/private/mpznml0ogujgpkvgucfja
  • Hello Sparkweb,

    I did as you said. but it didn't worked for me. :(

    I dont want to show (1,2,3,4) buttons and its image on product loop page. while size field must be there on product loop page. So if we will remove variation from product loop page then i think we will also loose size field from product loop page.

    And one more thing, i need large size image on the product detail page. Using this kind of variation it always returns medium size image.

    Thanks
    Ravi
  • Hello Sparkweb

    I am waiting for your reply.

    Thanks
    Ravi
  • sparkwebsparkweb Member, Integration Developer, FoxyShop, Order Desk
    So Ravi, I think I have got this figured out. It took a while to get it nailed down, but here's some new code to paste on your foxyshop-all-products.php page (at the top). All the older code can be removed.

    http://www.pastie.org/private/buafjqnruudamehiz9uuzg
  • Hello Sir,

    I have moved site to client's server. I put api into foxycart advanced setting. NOw product is not being added to cart. Please help me to solve this as site is on live server.
    http://www.armedworkwear.com

    Thanks
    Ravi
  • lukeluke FoxyCart Team
    It appears there is no link specified for your order today button:
    <a href="#"><img alt="slider image" src="http://armedworkwear.wp-freelancer.in/wp-content/uploads/2012/01/slider-img_savetime.jpg"></a>;
    

    @sparkweb: any idea what's up here in the FoxyShop side of things?
  • sparkwebsparkweb Member, Integration Developer, FoxyShop, Order Desk
    Yeah, this isn't working because the link is not there. Products from the Products page seem to be adding to the cart just fine. I'd probably link that directly to the products page.

    (Make sure you get all your references to the testing server removed to avoid trouble later)
  • Hello Sir,

    My site is live : http://www.armedworkwear.com

    I am not getting products size ( variations) in order receipt. How can i do that?

    I also want to create a rule for shipping. they should only be receiving free shipping if there order is over 150.00.

    Please help me to resolve this.

    Thanks
    Ravi
  • sparkwebsparkweb Member, Integration Developer, FoxyShop, Order Desk
    There are a bunch of shipping snippets at http://wiki.foxycart.com/snippets/shipping/start and one of these will likely help you do the free shipping.

    Are you sure that the product size was added to the cart along with the product? If it's added to the cart, the variation should show up on the receipt. If it's not, I'd need to have a WordPress login to see this.

    Can I make a recommendation that your slider on the front page link to the product page? It doesn't link anywhere right now.
  • Hello Sir,

    I added code for shipping(http://wiki.foxycart.com/snippets/shipping/conditional_free_shipping_with_live_rates). but its not working.

    Please help me to solve it.

    Thanks
    Ravi
  • fc_adamfc_adam FoxyCart Team
Sign In or Register to comment.