- Posts: 14
- Thank you received: 0
contact us for info page with product name
- natanjarorije
-
Topic Author
- Offline
Less
More
13 years 9 months ago #90613
by natanjarorije
contact us for info page with product name was created by natanjarorije
hi there,
is it possible to have the product name on the page with the form for contact us for info.
I've tried several things in contact.php but it all doesnt work. :huh:
I hope you can help me!
Thanks in advance
is it possible to have the product name on the page with the form for contact us for info.
I've tried several things in contact.php but it all doesnt work. :huh:
I hope you can help me!
Thanks in advance
Please Log in or Create an account to join the conversation.
13 years 9 months ago - 13 years 9 months ago #90685
by Xavier
Replied by Xavier on topic contact us for info page with product name
Hi,
You can edit the view "product / contact" and add the code:
You can edit the view "product / contact" and add the code:
Code:
<?php
$productClass = hikashop_get('class.product');
$product = $productClass->get(hikashop_getCID());
if($product->product_parent_id != '0' && $product->product_name == '')
$product = $productClass->get($product->product_parent_id);
echo $product->product_name;
?>
Last edit: 13 years 9 months ago by Xavier.
The following user(s) said Thank You: natanjarorije
Please Log in or Create an account to join the conversation.
- natanjarorije
-
Topic Author
- Offline
Less
More
- Posts: 14
- Thank you received: 0
13 years 9 months ago #90693
by natanjarorije
Replied by natanjarorije on topic contact us for info page with product name
superrrr! It works
Thank you!
Thank you!
Please Log in or Create an account to join the conversation.
Time to create page: 0.054 seconds