- Posts: 8
- Thank you received: 0
2 View problems
-- Joomla version --
.1.5-- PHP version -- :5.4
Capture 1 shows my first problem , this is a order made from 1 product with some options , i would like to only have quantity and Price on the main product.
My second problem is when i make a order. On the email that is sent to customer i would like to add the product description for the product ordered and for the options chosen, but i cannot fint the variable for the description.
Can someone please help with this.
/Jesper
Please Log in or Create an account to join the conversation.
For the first one, I think that you just have to enable the option "Group options with product"
And regarding the email, the description is not loaded in the email, you have to get the product _id with "$item->product_id", and then get the product data with:
Please Log in or Create an account to join the conversation.
Sorry but im new at this product
Problem 2 i can just change in system - emails and then Order status notification insert the text in html file where i want it to be shown ?
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
For your problem 2, you'll just have to add this code through the "HTML version" section of the page "Hikashop->System->Emails->'YourEmail'" :
Please Log in or Create an account to join the conversation.
I have now tried to insert this and i only get a field in my email called description but not the text in the description
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
Please Log in or Create an account to join the conversation.
$productClass = hikashop_get('class.product');
$fullProduct = $productClass->get($item->product_id);
echo $fullProduct->product_description;
and then call this part Down in html
<p>
<span style="color:#1c8faf !important;font-size:12px;font-weight:bold;">{TXT:product_description} :</span>
</p>
I hope that was correct
Thanks in advance
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
Your should probably replace this code (that you have previously put through the "HTML version" section) :
Please Log in or Create an account to join the conversation.
That did Work and took the Description for the main product , sorry its probably me that have not described my scenario correctly.
I have a Main product witch have some options and the options have some Characteristics.
Its the description for the Variants the Customer need there is some specific guidelines for customer on the different Variants
Please Log in or Create an account to join the conversation.
Adidibau wrote: Its the description for the Variants the Customer need there is some specific guidelines for customer on the different Variants
Hi,
Yes, not simple to understand the first time
Mohamed gives you something which can't work in the email. So please, don't use it.
The new templating system for the email is very flexible but we split the code and the design in two files.
You can still put some PHP code in the email but you can't mix the templating and the PHP like that.
In the file "your_email_name.preload.php" you will find this code
You have to use the same kind of code in order to load the product description, but per product option.
$optionElement->product_id : will gives you the product id for the selected variant.
So you can add few lines
Hope it will help you.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Thank you
is this something that can get deleted in a update
Please Log in or Create an account to join the conversation.
Yes you can loose your modification with an update.
The best is to create a copy of the modified file and to rename it : "your_email_name.preload.modified.php"
At this moment, HikaShop will use the ".modified" file and the update will update the original one.
So you will still use your override without any problem.
If you create an override of the "preload", I will recommend you to check that the "your_email_name.html.modified.php" exists too (because the two files are very closed)
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.