Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - CleanMart (SKU# FLEX-00015)

TOPIC: Adding Custom Tabs To Specific Products

Adding Custom Tabs To Specific Products 9 years 2 months ago #12267

Hi,

I just read the post here:
www.flexiblewebdesign.com/forum-virtuemart-2-template-fashionmart-support/2158-new-tab-next-to-description-is-it-possible#9919

I have the same problem as that guy. I am using Clean Mart but I need 2 product specific tabs. One will be picture Gallery and the other Documentation.

Please see here:
www.bmbtechnology.com/products/eco-series/bmb-nano-detail.html

I read that you do not give this help for free :-(

Please contact me via email This email address is being protected from spambots. You need JavaScript enabled to view it. for further discussion on terms.
The administrator has disabled public write access.

Adding Custom Tabs To Specific Products 9 years 1 month ago #12294

Hi,

Showing product-specific custom tabs through a plugin is not possible. It is not possible both technically and piratically. Look at the big picture (if you are a coder, you will understand what i am saying). If you want to show different "thing” for each product, then that “thing” has to be saved to database differently for each product, right?. But what our plugin does is: “it saves 1 thing” to database and it shows the same “thing” for all products.

There is one thing you can do, which is “hide/show” the custom tabs based on specific product(s) (or products from a specific category) you can do it by modifying the product PHP file (flexv2), put a IF…ELSE.. statement and display the custom tabs only for specific products (you can build the if statement by product ID or category ID).

In order to put “product specific” custom tabs for each product individually, using our plugin is useless; you should be using one of the “fields” that you see in the Product Details page (in VM Backend) and manipulate it, use that field for different purposes. For example, you can use “internal notes” field (every product has internal_notes field and usually nobody is using it, it is just there, you can type anything in that field and save it differently for each product individually.

find the PHP expression to print the “custom TABS” (that comes from plugin) and replace it with this PHP expression (on flexv2.php file)
<?php echo $this->product->intnotes ?>
then what ever you enter to “Internal Notes” field; will be displayed in the Product Details Page (for that specific product only)

Look at this topic for reference: www.flexiblewebdesign.com/forum-virtuemart-template-support/2649-html-tags-on-category-view
(this topic has a different case comparing to yours, but the idea is the same)

But you have to be familiar with PHP coding little bit to figure this out and take care this modification. If you don’t idea about PHP coding, then i wouldn’t recommend you to touch any file.

Since this is a 100% custom modification; unfortunately i can’t provide you any further support about.

regards
Last Edit: 9 years 1 month ago by Support.
The administrator has disabled public write access.
Time to create page: 0.190 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo