In our Christmas newsletter, we're offering our customers free shipping on selected products and told them to look for the Free Shipping image on individual products throughout the store. For this post, I'll call these Promo Products.
I coded our primary product template to check two Product Tags
the PRODUCT.NoShippingCharges should be checked and
the PRODUCT.Field5 should be equal to "free shipping"
(I can't just check the PRODUCT.NoShippingCharges tag because I have products that never have shipping calculated because they are too heavy.)
Here's the code in the Define Product section of the product template that sets a VAR to indicate this product is getting free shipping and the Free Shipping image should be displayed ....
# Does this product get free shipping?
[-- IF PRODUCT.NoShippingCharges --]
[-- IF PRODUCT.Field5 "free shipping" --]
[-- VAR.FreeShip yes --]
[-- ELSE --]
[-- VAR.FreeShip no --]
[-- END_IF --]
[-- END_IF --]
Then when the PRODUCT.Name gets displayed the following code displays an image indicating Free Shipping
# If free shipping display image
[-- IF VAR.FreeShip yes --]
<a onclick="javascript:newwindow=window.open ('http://www.ahoycaptain.com/shop/freeship2005.html','','height=600,width=500,left=20,top=0,screenX=10,screenY=10,directories=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no');newwindow.focus();return false;"
href="http://www.ahoycaptain.com/shop/freeship2005.html"><img border="0" src="http://www.ahoycaptain.com/shop/media/christmas/freeship.gif" align="texttop"></a>
[--END_IF --]
This is also done in the More Information Page Section where the product name is displayed.
At first I thought it worked like a charm, then the more I checked the more bizarre it got. Products that had not been set for free shipping started showing up with the Free Shipping image displayed by their Product Name and in the More Information page as though the two tags had been set. Yet when added to the shopping cart, shipping was calculated.
In one page showing 40+ products (http://www.ahoycaptain.com/shop/weemspl ... eters.html), only the next to last product, the Storm Glass was a Promo Product, yet every product on the page displayed the Free Shipping image. When I reset only the Storm Glass to once again calculate shipping, all products in that page stopped displaying the Free Shipping image as they should have. Other pages that had one or more Promo Products displayed the Promo products properly yet random non-promo products also displayed the image. The only page that displayed properly was the one where the ALL the products were Promo product http://www.ahoycaptain.com/shop/highsierra_ci.html
..
I don't get. All the products use the same template.
Could someone please give me a clue as to how one product in a page of 40+ products can affect the way all the products are displayed in that page.
If someone from ShopSite wants to demonstrate this in real time, I'd be glad to.
Thanks
Vince
908-464-5581
vince@ahoycaptain.com