- Posts: 16
- Thank you received: 0
fixed text on every product page
- bertdynamica
-
Topic Author
- Offline
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.6.3
-- Browser(s) name and version -- : Google Chrome Versie 41.0.2272.101 m
Hello,
I want to display fixed line of text on every product page instead of the button to ask a question. The line of txt will be "Voor meer informatie over dit product bel: +31(0)6 53 347 314" (for more information about this product call....).
The button ask a question led on the current site led to spam, so I had to disable it. If I can use the button on the new site, I want to enable recaptcha.
How can I achieve this?
Greetz,
Bert
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
You can add it :
- Through your product description
- Through a product custom field
- By directly editing the "show_default" file of the "product" view of your front-end template via "Hikashop->Display->Views"
Please Log in or Create an account to join the conversation.
- bertdynamica
-
Topic Author
- Offline
- Posts: 16
- Thank you received: 0
Thanks for the answer. And now the inevitable follow-up question.
I want to add the text by directly editing the "show_default" file of the "product" view of your front-end template via "Hikashop->Display->Views" but and don't know which code lines to use. Can you help me out with this?
Greetz, Bert
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.
- bertdynamica
-
Topic Author
- Offline
- Posts: 16
- Thank you received: 0
The extact place would be: under
and above
I will deactivate the button whereby the code of the button will disappear
I hope this is specific enough.
Greetz, Bert
Please Log in or Create an account to join the conversation.
So in the view "product /show_default", you have to add you code just before:
And you can use code like:
Please Log in or Create an account to join the conversation.
- bertdynamica
-
Topic Author
- Offline
- Posts: 16
- Thank you received: 0
I entered the code in the file you mentioned, but it didn't show up.
Do you have an idea what I did wrong?
Greetz,
Bert
Please Log in or Create an account to join the conversation.
Please be sure that you're editing the view for the right front-end template.
www.hikashop.com/support/support/documen...ize-the-display.html
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
- bertdynamica
-
Topic Author
- Offline
- Posts: 16
- Thank you received: 0
Please Log in or Create an account to join the conversation.
Then either you have some caching on your website (so clear your website cache) or you're using another product layout than the "default" one (so check that option of the configuration and your product).
Please Log in or Create an account to join the conversation.
- bertdynamica
-
Topic Author
- Offline
- Posts: 16
- Thank you received: 0
Gotcha!
With default parameters for products (Configuration > display > standard parameters for products > layout on product page) I do not use standard but reversed.
It appears that the sentence I want to display only shows if the option is 'Standard'.
Is it possible to display this sentence I want to use if the option is "reverse"?
Thank you!
Greetz, Bert
Please Log in or Create an account to join the conversation.
In that case you need to do the same modification but in the file "show_reversed" instead of the file "show_default".
Please Log in or Create an account to join the conversation.
- bertdynamica
-
Topic Author
- Offline
- Posts: 16
- Thank you received: 0
Thanks for the reply. My problem for this topic is solved.
Greetz and see you at the next challenge!
Bert
Please Log in or Create an account to join the conversation.