View Single Post
  #8  
Old 04-01-2015, 09:56 PM
 
aim aim is offline
Advanced Staff Users
 

X-Cart team
  
Join Date: Dec 2008
Posts: 928
 

Default Re: We've released 4.7.1

Quote:
Originally Posted by Dougrun
doing a 4.6.6 to 4.7.1 upgrade..

in skin/common_files/customer/main/product_details.tpl

the diff file shows
Code:
@@ -207,8 +208,8 @@ <option value="{$product.appearance.min_quantity}"{if $smarty.get.quantity eq $product.appearance.min_quantity} selected="selected"{/if}>{$product.appearance.min_quantity}</option> {if not $product.appearance.quantity_input_box_enabled} {section name=quantity loop=$product.appearance.loop_quantity start=$product.appearance.min_quantity} - {if %quantity.index% ne $product.appearance.min_quantity} - <option value="{%quantity.index%}"{if $smarty.get.quantity eq %quantity.index%} selected="selected"{/if}>{%quantity.index%}</option> + {if $smarty.section.quantity.index ne $product.appearance.min_quantity} + <option value="{$smarty.section.quantity.index}"{if $smarty.get.quantity eq $smarty.section.quantity.index} selected="selected"{/if}>{$smarty.section.quantity.index}</option> {/if} {/section} {/if}

But I cannot find that code at all and I'm pretty sure my file is unmodified from 4.6.6. Can you guys check?


The code is present in the default X-Cart 4.6.6
Code:
aim-server[~/public_html/xcart/4_6_6_gold]$ grep -rl '%quantity.index%' skin/common_files skin/common_files/admin/main/product_links.tpl skin/common_files/customer/main/buy_now.tpl skin/common_files/customer/main/product_details.tpl skin/common_files/modules/fCommerce_Go/customer/product.tpl aim-server[~/public_html/xcart/4_6_6_gold]$


The related smarty replace rule is
http://help.x-cart.com/index.php?title=X-Cart:Smarty3_update_notes_for_stores_upgrading_to_ X-Cart_4.7.x#sectionname_varname

The control grep is
Code:
grep -r --color=auto "%[a-zA-Z0-9_]\+\.[a-zA-Z0-9_]\+%" skin
__________________
Sincerely yours,
Ildar Amankulov
Head of Maintenance group
Reply With Quote