robycrazy
Members-
Posts
21 -
Joined
-
Last visited
Profile Information
-
Activity
Freelancer
robycrazy's Achievements
-
Hello Does anyone know if peorthyr's module works well with url's smartblog ??
- 192 replies
-
- hreflang
- localization
- (and 4 more)
-
Condition in product.tpl for a certain customer group .. HELP ?!
robycrazy replied to robycrazy's topic in General topics
I tested a new local installation 1.6.1.4 .. turned out that everything is fine .. The problem is that when I upgraded shop version to 1.6.1.4 my theme remained unchanged .. which files i must to overwrite to fix my problem !?! HELP... pls -
Condition in product.tpl for a certain customer group .. HELP ?!
robycrazy replied to robycrazy's topic in General topics
I do not know why there is such problem in cool platform like presta... If you have a product that has various additions it is normal the price to be change also!!! How to do this with javascript .. i dont know.. can you help me! Who file and what values i must to change !!? Nevertheless, Shokinro I thank you for your attention so far! -
Condition in product.tpl for a certain customer group .. HELP ?!
robycrazy replied to robycrazy's topic in General topics
Can anyone help me please !!! -
Condition in product.tpl for a certain customer group .. HELP ?!
robycrazy replied to robycrazy's topic in General topics
I insert in ProductController.php right after: * Assign price and tax to the template * / protected function assignPriceAndTax () { $groups = $this->context->customer->getGroups(); $isCustomerInSpecificGroups == 4; //my customer group $this->context->smarty->assign(array('isCustomerInSpecificGroups' => $isCustomerInSpecificGroups)); But it does not work when inserted in Product.tpl ... yes it has multiple price displaying sections, but the section which i need is: <!-- prices --> <div class="price"> <p class="our_price_display" itemprop="offers" itemscope itemtype="http://schema.org/Offer"> {if $product->quantity > 0}<link itemprop="availability" href="http://schema.org/InStock"/>{/if} {if $priceDisplay >= 0 && $priceDisplay <= 2} <span id="our_price_display" itemprop="price" >{convertPrice price=$productPrice}</span> <!--{if $tax_enabled && ((isset($display_tax_label) && $display_tax_label == 1) || !isset($display_tax_label))} {if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if} {/if}--> I tried another way .. I insert in ProductController.php : $this->context->smarty->assign('checkcustomer',$this->context->customer); then I changed : <div class="price"> <p class="our_price_display" itemprop="offers" itemscope itemtype="http://schema.org/Offer"> {if $product->quantity > 0}<link itemprop="availability" href="http://schema.org/InStock"/>{/if} {if $priceDisplay >= 0 && $priceDisplay <= 2} <span id="our_price_display" itemprop="price" {if $checkcustomer->id_default_group == 4} style="display: none;"{/if}>{convertPrice price=$productPrice}</span> <!--{if $tax_enabled && ((isset($display_tax_label) && $display_tax_label == 1) || !isset($display_tax_label))} {if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if} {/if}--> {if $checkcustomer->id_default_group == 4} <span id="our_price_display" itemprop="price" >{convertPrice price=$productPriceWithoutReduction}</span> {/if} it's work at half .. it is ok with customer group different from 4,.. but in group 4 the price does not change when you select attribute with a different price! Only change the bottom price : <p id="old_price"> <span id="old_price_display">23,40 €</span></p> which come from line 256 in Product.tpl Any idea !??! -
Condition in product.tpl for a certain customer group .. HELP ?!
robycrazy replied to robycrazy's topic in General topics
Hi shokinro, thanks for your reply .. I added what you wrote in ProductController.php right after: * Assign price and tax to the template * / protected function assignPriceAndTax () { then in Produtst. tpl I put condition: <div class="price"> <p class="our_price_display" itemprop="offers" itemscope itemtype="http://schema.org/Offer"> {if $product->quantity > 0}<link itemprop="availability" href="http://schema.org/InStock"/>{/if} {if $priceDisplay >= 0 && $priceDisplay <= 2} <span id="our_price_display" itemprop="price">{convertPrice price=$productPrice}</span> <!--{if $tax_enabled && ((isset($display_tax_label) && $display_tax_label == 1) || !isset($display_tax_label))} {if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if} {/if}--> {if isset($isCustomerInSpecificGroups) && $isCustomerInSpecificGroups == 4} <span id="our_price_display" itemprop="price">{convertPrice price=$productPriceWithoutReduction}</span> {/if} <meta itemprop="priceCurrency" content="{$currency->iso_code}" /> {/if} </p> But it seems the condition is not running ... I get the following: i try couple of hours but can not figured out ... and decided to ask If I'm not mistaken somewhere or something !? -
Hello everyone, I have attribute that change the price of some products for 1, 2 or 3 packs! (example : the basic price is 26 € for 1 pakc, for 2 pakcs there is attribute with 2 € less. i.e. 50 € for 2 pakcs ) I create customer group with discount - these products which has this attribute change their prices inproper .. 10 % form 26 is 23.40 - but there has still other price lower!!! can somebody to help me to insert a condition in product.tpl when a customer of this group login to view the correct amount of the discount (only 23.40)! for <p class="our_price_display" itemprop="offers" itemscope="" itemtype="http://schema.org/Offer"><link itemprop="availability" href="http://schema.org/InStock"> <span id="our_price_display" itemprop="price"> something like {if $checkcustomer->id_default_group== '4'} style="display:none;"{/if} and something to remove strikethrough from the proper price in that condition!
-
How to change the products in Top-sellers block ?!
robycrazy replied to robycrazy's topic in Configuring and using PrestaShop
don't know php? If I delete the orders in these products, they will disappear or .... ?!? I do not want to simulate sales, because the next time i must to simulate more sales for another product ... -
How to turn off mobile theme in Prestashop 1.6.0.6
robycrazy replied to robycrazy's topic in OUT - 1.6.0.11 [7 Jan 2015]
VEKIA, Thanks for the quick reaction! any suggestions what I can do... Can anything be done... should I use an old theme... may be some theme for 1.5 version ... -
How to turn off mobile theme in Prestashop 1.6.0.6
robycrazy replied to robycrazy's topic in OUT - 1.6.0.11 [7 Jan 2015]
Yes,.. i did it right... i have a presta 1.5.4.1 and there - disabling of mobile theme work fine, but in 1.6.0.6 the changes for android are only switches between one or two columns, no changes in blocks, top menu and ect. it not mine, can't provide url, sorry !