Jump to content

Tomas LT

Members
  • Posts

    66
  • Joined

  • Last visited

Tomas LT's Achievements

Newbie

Newbie (1/14)

2

Reputation

  1. Hello, if i create new product without combinations - in front office i can't open product page - get error - product page not found. Friendly URL's - Enabled. URL don't have combination ID ({id_product_attribute}) and wont open product page. If disable friendly url, then working normaly. Version 1.7.1.2., Theme - Classic default. Please help me.
  2. Hello. I can't add product to existing order in BO. Test with prestashop online demo. Same issue, but error code in my store is different: Impossible to add the product to the cart. textStatus: 'parsererror' errorThrown: 'SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data' responseText: Fatal error How to fix this? Thanks.
  3. Dont work Showing first tag two times...
  4. I add this code in product.tpl file. Not in other foreach loop. I test different positions in top, middle or end file, but tags displaying two times.
  5. Hello. Need show product tags on product page. I find this code: <ul class="producttags"> {foreach from=Tag::getProductTags(Tools::getValue('id_product')) key=k item=v} {foreach from=$v item=value} <li><a href="{$link->getPageLink('search', true, NULL, "tag={$value|urlencode}")}">{$value|escape:html:'UTF-8'}</a></li> {/foreach} {/foreach} </ul> But tags are showing two times: tag1, tag2, tag3, tag1, tag2, tag3 How to display each tag one time? Prestashop 1.6.0.11
  6. I found solution. 1)/controllers/front/ProductController.phpat line 439 add: $groups[$row['id_attribute_group']]['name_price'][$row['id_attribute']] = array('name' => $row['attribute_name'],'price' => $row['price']); 2)/themes/YOUR_THEME/product.tpl at ~345 line find : {if ($group.group_type == 'select')} and replace code with this: <select name="{$groupName}" id="group_{$id_attribute_group|intval}" class="form-control attribute_select no-print"> {foreach from=$group.name_price key=id_attribute item=group_attribute} <option value="{$id_attribute|intval}"{if (isset($smarty.get.$groupName) && $smarty.get.$groupName|intval == $id_attribute) || $group.default == $id_attribute} selected="selected"{/if} title="{$group_attribute.name|escape:'html':'UTF-8'}">{$group_attribute.name|escape:'html':'UTF-8'} {if $group_attribute.price>0}+{/if}{if $group_attribute.price!=0} {$price_with_tax = $group_attribute.price + ($group_attribute.price*($tax_rate/100))} {if $product->specificPrice && $product->specificPrice.reduction_type == 'percentage'} {$price_with_tax = $price_with_tax - ($price_with_tax*$product->specificPrice.reduction)} {/if} {convertPrice price=$price_with_tax} {/if} </option> {/foreach} </select> Price showing with tax and discount.
  7. Thanks for reply, but i have thousands of products... This method is not for me Need show price impact programmatically.
  8. I'd like to show the price impact right beside the combination selector (a radio button or dropdown list) so the user can quickly make decisions. Can anyone help me? Thanks
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More