A new extra filed, called tech sheet, to add product description, so I write tech information in this field, and automatically show as a new tab
Printable View
A new extra filed, called tech sheet, to add product description, so I write tech information in this field, and automatically show as a new tab
Hi Rob,
Well in earlier versions, I had all the tab stuff inside a custom tpl_product_info_display.php file, which was hell for people with lots of customizations.
Since v3.5, Ive smartened up and put everything tab-related into its own file. Now there are only a few changes needed to make the tabs work with an already custom tpl_products_info_display.php page, as documented in the "extras" folder included with the package.
There is one limit. The layout of the data, when displayed on the tabs is displayed using a clone of the zen-cart core design. It will still use the custom css values for your content, but for example if you have the add to cart button above the description on your custom template without tabs, if you enabled the Global Add To Cart on Tabs option, it will show the Add to cart button under the description. However, if you dont enable the add to cart button as a tab, it will go back to your setup of having the add to cart button above the tabs.
The parts of that page that aren't on tabs, will still default to your custom changes. This can vary based on how big the changes were. If you could link me to a page or send me a custom tpl_product_info_display.php file I could take a look at what custom needs there might be.
Site is for a Client and not yet live, this is the URL: http://reelstackle.com/index.php
Although most of the changes within the 'tpl_product_info_display.php' file are cosmetic, it did require a changing of the logic flow. So my only concern was your Mod looking for certain code in certain places.
Once I get a chance to read through your material I'll have a better idea of how it all works together. I do like the idea though, of using a seperate file for any Mod.
The code needed to add is basic logic so that if you set something to show up on a tab, it doesn't also show up in its original area. So in the default zen core prod info template, you see a lot of <!-- bof Add to Cart box --> and <!-- bof Quantity Discounts box -->. I simply put an if statement around each box that checks a variable that is set when you set something to be on the tabs. If it finds the global tab is set or that the tag for that tab was found in the product description area, it will set that on_tab_flag to true and if true on tab, then don't show in normal location.
Other than that, i only do a logic check to see if you want the main image to be on the tab or if you just want the tabs under the image. Then I require the tabs module template for the tab stuff.
The changes that I see on your site shouldn't be affected tho as those are well below the description area.
You'll have to wait and see :p
I am really new at all of this, so hope you will bear with me.
I've installed newest ver. of Zen-Cart, works great.
Now I am trying to get Tabbed Lite to work.
Installed temple files to custom dir, /includes/templates/custom.
uploaded db files with SQL Query Executor
Now my page looks like this:
http://www.naturalhealthcarenet.com/pics/screen.bmp
where have I gone wrong, and how do I get the tabbed templates to work.
The tabbed look would only be on the products themselves. That page appears to be the main store front page. Try clicking on a product to see what it looks like. Also, check in your Admin->Configuration->Tabbed Products Config page to see if you have more than just "Global Product Description on Tab". If not, then run the 3.6AlternativeSQL file that I included. You should have 10 settings there, not just one.
Installed 3.6AlternativeSQL still no change. Called up product, this is what I get:
http://www.naturalhealthcarenet.com/pics/screen2.bmp
Also need to know how to get templates to load, do I do that with the stylesheet, and do you have any examples of what to chage on thattold you I'm new to php. Just started to understand HTML, this is a whole new ball game.
Would like it to look more like this:
http://www.naturalhelthcarenet.com/pics/screen3.bmp
Didn't get loaded right. Want it to look more like this:
http://www.naturalhealthcarenet.com/pics/screen3.bmp