Subproducts can not be sold

General ShopSite user discussion

Subproducts can not be sold

Postby sholt » Thu Dec 22, 2011 8:54 am

Ok trying to re-work our website using subproducts, with the main product being a category that is not for sale. subproducts added to the page by themselves work fine. When they are added as subproducts its like they are inactive the add to cart button does not react to a click and the items can not be purchased. I reverted to the stock product templates
sholt
 
Posts: 23
Joined: Thu Dec 27, 2007 11:26 am

Re: Subproducts can not be sold

Postby Jim » Thu Dec 22, 2011 9:49 am

They should work just fine as subproducts to a product that is actually not available for sale. So it must be something in your template that is not setup correctly. Since you didn't give a link to a page where the products are displayed and didn't include a copy of the template, it is pretty hard to guess what might be going on. However, my first guess is that you don't have the proper form elements to make the subproducts submit to the cart.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Subproducts can not be sold

Postby sholt » Thu Dec 22, 2011 10:07 am

Thanks Jim,

It appears to be something with the classy template. I normally use a modified classy template for products but even when switching to the default shopsite classy template the subproducts would not work. As soon as I switch to another template everything is fine.

I would send you a link but obviously I don't want dead products so I have already switched all of the effected products to a different template.
sholt
 
Posts: 23
Joined: Thu Dec 27, 2007 11:26 am

Re: Subproducts can not be sold

Postby Jim » Thu Dec 22, 2011 11:16 am

I looked at the template and in the include file classy_pr_vars.sst is this code:
Code: Select all
# determines if subproducts are to be used for cross-sell or as normal subproducts.
  [-- IF PRODUCT.Field1 "cross_sell_subproducts" --]
    [-- VAR.cross_sell_subproducts "true" --]
  [-- ELSE --]
    [-- VAR.cross_sell_subproducts "false" --]
  [-- END_IF --]

So the template is checking the Extra Fields Product field 1 for the value "cross_sell_subproducts" and if that text is in the field then the subproducts will be listed so that they can be purchased.

I tested this in my store and when the text "classy_pr_vars.sst" is in Product field 1 then I was able to purchase the subproducts. So after the Christmas rush is over you might try switching to that template again and add the text to your main product and see if you like how it displays.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah


Return to User Forum

Who is online

Users browsing this forum: No registered users and 77 guests