Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

Vous parlez français ? par ici !
[CONTRIBUTION] Boilerplate text in product descriptions
#1
Posted 03 October 2009 - 07:46 PM
http://www.thatsoftw...oilerplate.html
with help and instructions.
My Mods: Better Together, Boilerplate Description, Sort order in CMS
http://www.thatsoftw...prestashop.html
Please support my feature request for a generalized fee/discount framework in PrestaShop: http://www.prestasho...cker/view/3044/
#2
Posted 01 November 2009 - 11:18 PM
#3
Posted 01 November 2009 - 11:39 PM
My Mods: Better Together, Boilerplate Description, Sort order in CMS
http://www.thatsoftw...prestashop.html
Please support my feature request for a generalized fee/discount framework in PrestaShop: http://www.prestasho...cker/view/3044/
#4
Posted 02 November 2009 - 12:00 AM
public function __construct($id_product = NULL, $full = false, $id_lang = NULL)
Boilerplate::doBoilerPlate($this, $id_lang);
{
parent::__construct($id_product, $id_lang);
if ($full AND $this->id)
{
$this->manufacturer_name = Manufacturer::getNameById(intval($this->id_manufacturer));
$this->supplier_name = Supplier::getNameById(intval($this->id_supplier));
$tax = new Tax(intval($this->id_tax), intval($id_lang));
$this->tax_name = $tax->name;
$this->tax_rate = floatval($tax->rate);
$this->new = $this->isNew();
}
$this->category = Category::getLinkRewrite(intval($this->id_category_default), intval($id_lang));
$this->tags = Tag::getProductTags($this->id);
}
Thanks,
Hawaii350
#5
Posted 02 November 2009 - 12:04 AM
My Mods: Better Together, Boilerplate Description, Sort order in CMS
http://www.thatsoftw...prestashop.html
Please support my feature request for a generalized fee/discount framework in PrestaShop: http://www.prestasho...cker/view/3044/
#6
Posted 02 November 2009 - 12:12 AM
http://ifixithawaii....p?id_product=17
running 1.2.4
Thanks again for the help
#7
Posted 02 November 2009 - 12:23 AM
<?php
$stringArray = array (
'%%SHIPPING_USA_ONLY%%' => "Shipping to USA only.",
'%%SATISFACTION_GUARANTEED%%' => "Your satisfaction is guaranteed!",
'%%ipod_broken_screen%%' => "Did you accidentally drop your iPod and to your horror notice the screen has large, black, inky spots? Send it in to have the screen replaced, and before you know it you will be listening to music again.
Add this repair to your cart if your screen:
- Is cracked or has inky, black spots
- Remains white but the iPod still functions
- Does not turn on at all but the iPod still functions
- Turns on but is dim and very hard to see (no backlight)
In some cases, a non-functional screen may be caused by a faulty logic board. If the logic board is the culprit, you will be contacted and given the option to:
- Pay the difference in price to have the logic board replaced
- Have your iPod returned and receive a refund minus the standard diagnostic fee ($4.95)
- Sell it to us and receive a full refund, plus extra CASH
If you have any custom engravings please click here
90 Day Limited Warranty
"
);
?>
#8
Posted 02 November 2009 - 12:26 AM
"
has no hope of working. :) Be sure to escape inner quotes. It's best to use single quote to wrap the string, and double quote inside, escaping as required.
My Mods: Better Together, Boilerplate Description, Sort order in CMS
http://www.thatsoftw...prestashop.html
Please support my feature request for a generalized fee/discount framework in PrestaShop: http://www.prestasho...cker/view/3044/
#9
Posted 02 November 2009 - 12:35 AM
Thanks again,
Hawaii350
#10
Posted 17 November 2009 - 07:53 AM
Is it possable to get this to work on prestashop v1.1 ?, It is something that I could use (for short description box text), so I am willing to donate to get it to work.
Or does anybody know of another way I can do this
All the best,
Cerberus22
#11
Posted 11 March 2010 - 11:52 PM
Any chance of getting this to work on the short descriptions also or other parts of the website?
Keep up the great work!
#12
Posted 19 March 2011 - 03:44 PM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












