Jump to content

robycrazy

Members
  • Posts

    21
  • Joined

  • Last visited

Profile Information

  • Activity
    Freelancer

robycrazy's Achievements

Newbie

Newbie (1/14)

  • Dedicated Rare
  • One Year In Rare
  • Week One Done Rare
  • One Month Later Rare

Recent Badges

0

Reputation

  1. 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
  2. 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!
  3. 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 !??!
  4. 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 !?
  5. 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!
  6. Hi, when insert a link in the description of product, and make it target="_blank", and after saving, target="_blank" disappears and it doesnt open in new window (it opens in the same window). presta v. 1.6.0.9 Any suggestions?
  7. Hello,... I want to put the word "price" just before product's price in product page... i think this will increase seo and how can i do that... I must to change something in product.tpl, but dont know what and where.. using v.1.6.0.8 Someone to help, please !!!
  8. 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 ...
  9. Hello,... F1,.. F1... used version: 1.5.4.1 Is it possible to change the products in "top sellers block"... I want to put there products that were never ordered..
  10. 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 ...
  11. 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 !
×
×
  • Create New...