Jump to content

Problem with product combination


samcho

Recommended Posts

Hi,

Im using color combination for my products. Before upgrading to Prestashop 1.6.0.9 everything was okay. After the updates I cant change the color of the product in the product detail. So the customer can not choose the color and make a order with color they want

 

For example : http://playstore.sk/prislusenstvo-/11227-sony-ps4-dual-shock-bezdrotovy-ovladac-k-playstation-4.html

 

Nex example : http://playstore.sk/mysi/11232-logitech-ls1-laser-mouse-usb.html?search_query=Logitech+LS1+&results=1

 

In administration, I have assigned the correct colors, as I was saying before the update everything worked as it should.

 

Thnaks for help.

Link to comment
Share on other sites

Check your product.tpl file.

 

do you have this?

 

{if isset($combinations) && $combinations}
{addJsDef combinations=$combinations}
{addJsDef combinationsFromController=$combinations}
{addJsDef displayDiscountPrice=$display_discount_price}
{addJsDefL name='upToTxt'}{l s='Up to' js=1}{/addJsDefL}
{/if}
 
Should  be about at the end of the file
 
If you do, try checking Advanced Parameters > Performance, the option labeled 'Move JavaScript to the end'. Set it to yes if it's set to no
Link to comment
Share on other sites

 

Check your product.tpl file.

 

do you have this?

 

{if isset($combinations) && $combinations}
{addJsDef combinations=$combinations}
{addJsDef combinationsFromController=$combinations}
{addJsDef displayDiscountPrice=$display_discount_price}
{addJsDefL name='upToTxt'}{l s='Up to' js=1}{/addJsDefL}
{/if}
 
Should  be about at the end of the file
 
If you do, try checking Advanced Parameters > Performance, the option labeled 'Move JavaScript to the end'. Set it to yes if it's set to no

 

I dont see this in product.tpl Where i must paste this code ?

Link to comment
Share on other sites

I past code here it is on the end of product.tpl :

 

{strip}
{strip}
{if isset($smarty.get.ad) && $smarty.get.ad}
{addJsDefL name=ad}{$base_dir|cat:$smarty.get.ad|escape:'html':'UTF-8'}{/addJsDefL}
{/if}
{if isset($smarty.get.adtoken) && $smarty.get.adtoken}
{addJsDefL name=adtoken}{$smarty.get.adtoken|escape:'html':'UTF-8'}{/addJsDefL}
{/if}
{addJsDef allowBuyWhenOutOfStock=$allow_oosp|boolval}
{addJsDef availableNowValue=$product->available_now|escape:'quotes':'UTF-8'}
{addJsDef availableLaterValue=$product->available_later|escape:'quotes':'UTF-8'}
{addJsDef attribute_anchor_separator=$attribute_anchor_separator|addslashes}
{addJsDef attributesCombinations=$attributesCombinations}
{addJsDef currencySign=$currencySign|html_entity_decode:2:"UTF-8"}
{addJsDef currencyRate=$currencyRate|floatval}
{addJsDef currencyFormat=$currencyFormat|intval}
{addJsDef currencyBlank=$currencyBlank|intval}
{addJsDef currentDate=$smarty.now|date_format:'%Y-%m-%d %H:%M:%S'}
{if isset($combinations) && $combinations}
{addJsDef combinations=$combinations}
{addJsDef combinationsFromController=$combinations}
{addJsDef displayDiscountPrice=$display_discount_price}
{addJsDefL name='upToTxt'}{l s='Up to' js=1}{/addJsDefL}
{/if}

 

and chceck performance, and still not working.

Link to comment
Share on other sites

×
×
  • Create New...