I am beginning to adopt the Single Product per Page layout and have used the AUG page 24 Method 2 for help. I would like to ask to questions.
1. There appears to be some PHP script which I believe takes the first 10 words from the product description and places them in the product section list. I have removed this script and it does remove the first bit of the description but does this script contain any thing else crucial that I need (my programing knoledge is very limited) This is the script:
The reason why I wanted to remove this from the section layout is because the first line of my description is HTML linking to images (see here http://www.norfolkherbs.co.uk/images/screenshot.jpg)
2. Whilst researching SPP layouts, I found a couple of posts regarding a mistake in the AUG and it was mentioned that it was to be changed but it doesn't appear to have been.
should be
Is the latter then correct? I am using 8.5.3
Cheers.
Olly
1. There appears to be some PHP script which I believe takes the first 10 words from the product description and places them in the product section list. I have removed this script and it does remove the first bit of the description but does this script contain any thing else crucial that I need (my programing knoledge is very limited) This is the script:
Code:
<actinic:block php="true" > $sShort = ""; $nCount = 0; $sOriginal = '<actinic:variable encoding="perl" name="ProductDescription" selectable="false" />'; foreach(explode(" ", $sOriginal) as $sWord) { if ($nCount > 10) { $sShort .= "..."; break; } $sShort .= $sWord . " "; $nCount++; } echo $sShort; </actinic:block>
2. Whilst researching SPP layouts, I found a couple of posts regarding a mistake in the AUG and it was mentioned that it was to be changed but it doesn't appear to have been.
Code:
<span class="actrequired"><Actinic:Variable Name="QuantityPrompt"/></span><br> <input type="text" name="Q_<Actinic:Variable Name="ProductReference"/>" size="4"
Code:
<span class="actrequired"><Actinic:Variable Name="QuantityPrompt"/></span><br> <input type="text" name="Q_<Actinic:Variable Name="ProductID"/>" size="4"
Cheers.
Olly
Comment