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

TOPIC: Product specific custom tabs

Product specific custom tabs 9 years 1 month ago #12285

Hello,

I have J3, VM3 and Cleanmart VM template installed here:
www.bmbtechnology.com/products/eco-series/bmb-nano-detail.html

I would like to add Picture Gallery and Product Documentation for each tab. I read through the forums and there is a way to do it with default.php, css and jquery. But there were some missing parts in the directions. Could you please help!!
The administrator has disabled public write access.

Product specific custom tabs 9 years 1 month ago #12306

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 is different case then yours, but the idea is 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
The administrator has disabled public write access.
Time to create page: 0.061 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