- Posts: 41
- Thank you received: 1
Custom new view show_tabular.php for concrete products
- motocasionweb
-
Topic Author
- Offline
Less
More
6 years 6 months ago #317590
by motocasionweb
-- HikaShop version -- : 4.0.0
-- Joomla version -- : 3.9.16
-- PHP version -- : 7.2.29
-- Browser(s) name and version -- : chrome
Hi!
I have created a sales promo during our quarentine time in Spain.
I have created budgets with different discounts and I have designed a button image at the product page (in my case show_tabular.php) to take the user to a form.
My question is the following: would it be possible to create another customized "show_tabular.php" without the custom button image to use it in the page of products that don't have an offer?
Thank you very much.
Best regards.
-- Joomla version -- : 3.9.16
-- PHP version -- : 7.2.29
-- Browser(s) name and version -- : chrome
Hi!
I have created a sales promo during our quarentine time in Spain.
I have created budgets with different discounts and I have designed a button image at the product page (in my case show_tabular.php) to take the user to a form.
My question is the following: would it be possible to create another customized "show_tabular.php" without the custom button image to use it in the page of products that don't have an offer?
Thank you very much.
Best regards.
Please Log in or Create an account to join the conversation.
6 years 6 months ago #317591
by nicolas
Replied by nicolas on topic Custom new view show_tabular.php for concrete products
Hi,
Yes. In the menu Display>Views, you can edit show_tabular.php
If you do, you'll see at the top of the textarea with the code of the file a text input with the text "tabular". You can change that text to create another product layout when you save.
Then, in your products, you'll find the "layout on product page" setting where you can select that new product layout.
Best regards,
Nicolas
Yes. In the menu Display>Views, you can edit show_tabular.php
If you do, you'll see at the top of the textarea with the code of the file a text input with the text "tabular". You can change that text to create another product layout when you save.
Then, in your products, you'll find the "layout on product page" setting where you can select that new product layout.
Best regards,
Nicolas
Please Log in or Create an account to join the conversation.
- motocasionweb
-
Topic Author
- Offline
Less
More
- Posts: 41
- Thank you received: 1
6 years 6 months ago #317810
by motocasionweb
Replied by motocasionweb on topic Custom new view show_tabular.php for concrete products
Hi Nicolas, thanks for answer. I think I explained it wrong. I've already edit "show_tabular.php" trough the menu "Display>Views" and there I created a image button "Llévatela con promoción" (as you can see here for example:
Thank you very much.
best regards.
carol.
This message contains confidential information
). The point is that some products don't have this promotion and I didn't want to show this button. Because of that I'm wondering if I could create another different "view" named "show_tabular_nopromo.php" for example where the button isn't there.Thank you very much.
best regards.
carol.
Please Log in or Create an account to join the conversation.
6 years 6 months ago #317812
by nicolas
Replied by nicolas on topic Custom new view show_tabular.php for concrete products
Hi,
No I understood what you wanted to do.
But apparently, I explained wrong as you didn't understood what I meant.
Let's do differently. Go in the menu Display>Views and edit your product / show_tabular.php view file.
There, you'll see this: monosnap.com/file/fhHm4Qz7QZ3SBOtZ9qjoLao8SeWmI9
After the text "tabular" in that input field, add _nopromo and save.
You'll now have your product / show_tabular_nopromo.php override.
And if you edit edit a product, in the "layout on product page" setting, you'll be able to select that show_tabular_nopromo layout on top of the 3 default ones.
No I understood what you wanted to do.
But apparently, I explained wrong as you didn't understood what I meant.
Let's do differently. Go in the menu Display>Views and edit your product / show_tabular.php view file.
There, you'll see this: monosnap.com/file/fhHm4Qz7QZ3SBOtZ9qjoLao8SeWmI9
After the text "tabular" in that input field, add _nopromo and save.
You'll now have your product / show_tabular_nopromo.php override.
And if you edit edit a product, in the "layout on product page" setting, you'll be able to select that show_tabular_nopromo layout on top of the 3 default ones.
Please Log in or Create an account to join the conversation.
Time to create page: 0.059 seconds