Skip to main content

contact us for info page with product name

13 years 9 months ago #90613 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

Please Log in or Create an account to join the conversation.

13 years 9 months ago - 13 years 9 months ago #90685 by Xavier
Hi,

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.

13 years 9 months ago #90693 by natanjarorije
superrrr! It works

Thank you!

Please Log in or Create an account to join the conversation.

Time to create page: 0.054 seconds
Powered by Kunena Forum