- Posts: 251
- Thank you received: 2
Contact us for information
in the email I get when someone sends a "Contact us for information" email, there is no reference to the product. How can I add?
For Example
www.hidesign.it/it/smart-design/product/...913/radio-cubo-ts522
www.hidesign.it/it/smart-design/product/contact/cid-2913
Thank you!
Please Log in or Create an account to join the conversation.
The name of the product is in the subject of the email.
Isn't that the case on your website ?
Please Log in or Create an account to join the conversation.
A contact request has been made for the product '%s'
or simply
A contact request has been made
Please Log in or Create an account to join the conversation.
Could you replace the line:
$product = $class->get((int)$element->product_parent_id);
by:
$variant = $class->get((int)$element->product_parent_id);
if(!empty($variant->product_name)){
$product = $variant;
}
in the file components/com_hikashop/controllers/product.php and try again ?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
A contact request has been made for the product ''
www.hidesign.it/test/it/catalogo/product...id-3217/around-clock
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
now works but I get the name of products without variants
A contact request has been made for the product 'Chair one: '
www.hidesign.it/test/it/catalogo/product...w/cid-3145/chair-one
Please Log in or Create an account to join the conversation.
$db =& JFactory::getDBO();
$db->setQuery('SELECT * FROM '.hikashop_table('variant').' AS a LEFT JOIN '.hikashop_table('characteristic') .' AS b ON a.variant_characteristic_id=b.characteristic_id WHERE a.variant_product_id='.(int)$element->product_id.' ORDER BY a.ordering');
$product->characteristics = $db->loadObjectList();
before the code:
$parentProduct = $class->get((int)$product->product_parent_id);
$class->checkVariant($product,$parentProduct);
That should allow the system to add the characteristic values to the name of the products.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Nello wrote: Perfect!
Che bel sito Nello, complimenti!
Mi rendo conto di quanto sul css devo ancora imparare...
Please Log in or Create an account to join the conversation.
Serve solo un po' di applicazione...
Poi con l'aiuto di Nicolas si riesce a fare praticamente tutto!!! ¦D
Please Log in or Create an account to join the conversation.
- Posts: 218
- Thank you received: 6
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Posts: 218
- Thank you received: 6
Product: xxxx
Product Code: xxx
Size (eg whatever the Variant is): White
Colour (eg whatever the Variant is): Large
That way the subject of the email is not excessively long but there is still the information that the admin needs to know to know what product the enquirer is asking about. I need the product code included as the product names dont always make it easy to know what product it is.
Please Log in or Create an account to join the conversation.
We'll convert the email to an editable email like the others so that everyone can have it the way he wants.
Please Log in or Create an account to join the conversation.