-
Re: Tabbed Products ''LITE'' version - Delimiter based
Great News!
I had another one of my "genius" moments :P and figured out how to make the tabs stuff into its own template file that can be called when used. I also took all the config stuff and made it into its own config module file. and I've also created a language file for the hard coded tabs.
Now the tpl_product_info_display.php file is nice and small once again and easier to understand when people want to make changes to the non-tabbed look like moving elements around. There are very few changes to the core template file now, only some minor logic to prevent things from showing both on tabs and under them.
The tabs themselves are called now with a 'require' function.
I am now going to be looking at putting Tell a Friend, Reviews, and Ask A Question inside their own tabs and converting this over to the music display template. Now that it is a separate file, it should be simple to merge into any template.
Stay tuned!
-
Re: Tabbed Products ''LITE'' version - Delimiter based
:thumbsup: :thumbsup:
Now you are really understanding the power of Zen.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by Kim
:thumbsup: :thumbsup:
Now you are really understanding the power of Zen.
heh, slowly but surely :P
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Well.. I'm stumped..
I can't seem to figure out how to pass all the proper variables for the product on page load, or know if it is even possible.
The Ask A Question seems to use a url to pass the values from that page to the contact form to pre-fill in the values. But I'm not sure that it is possible to know the values until after the page loads, so I don't think I can use that as a tab.
The Reviews form seems to also pass the product_id and I don't know how to pass that on page load. So it shows the review window, but it says there are no reviews when there should be.
And The Tell a friend has the same problem, plus it seems to skip the language file load. It shows a form and some "TEXT_BLAH_BLAH". Another problem there is that Tell a Friend would normally require you to login so it would defeat the purpose as the login would take you to another screen.
--------
The good news about the separate files still holds true though :) I am porting it over to the music product type now and so far it seems super easy to do. I also have the separate language file working fine. So unless someone else has some ideas on how to get the other 3 features working, I will have to leave this as is.
I will upload a new version later tomorrow most likely.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Ok. Here is the first release of the new "genius" version of Tabbed Product Lite :p
Some Highlights:
- Massive restructuring. All tab code is separated from the rest of the template file. This makes it much easier to merge the tabs into existing custom product templates and make new custom changes without a lot of confusing code surrounding the core code.
- Tab code is own template file now: /includes/templates/your_template/templates/tpl_tabbed_products_lite.php
- Tab config is own module file now: /includes/modules/tabbed_products_lite.php
- Original tpl_product_display_info.php now is much smaller, close to the default core size with minor modifications.
- Added language files. Now you can have different languages for your tabs.
- Ported the Product Types: Product, Product Music, and Product Free Shipping to a tabbed version and included the files. Now you can use the same tabs module and template with any of the included Product Types
- Added a tab for Media Manager/Collection for the music tab only. Code checks to ensure that only the music product type offers that as a tab
- Completely cleaned up the code and properly tabbed it all now that it is much easier to discern.
- Created easy to follow instructions for merging tab code into existing custom templates.
- Revamped the Add your Own Tab instructions.
I attempted to include Tell a friend, Ask a Question, and Reviews on their own tabs but there is some params and prerequisites for them and I'm not really sure how to do it.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
I should also mention that by upgrading, if you haven't changed the default layout, nothing should change for you. Even though everything is in a different file, it should be transparent from a customer store view standpoint.
Plus keep in mind for those of you who finally have the past version finally happy the way you want it... it is quite easy to change it all around for this version.
As always, Im here to help :)
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by qhome
I should also mention that by upgrading, if you haven't changed the default layout, nothing should change for you. Even though everything is in a different file, it should be transparent from a customer store view standpoint.
Plus keep in mind for those of you who finally have the past version finally happy the way you want it... it is quite easy to change it all around for this version.
As always, Im here to help :)
-----------------------------------------------------------------------
QHOME,
Thank you for this is aamazing tool. I uploaded this new version to my site. It's running very vell. Specially for the the multilanguage possibility I will say : THANK YOU. GREAT JOB. Have a nive weekend.
Remzi:smile:
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Hi qHome,
I installed new version and having following issues:
1-The model, weight (details) not showing,
2-I can't get the AaQ buttong to show up
Apparently you tried to move the details to another position (other than below the product name/price) and they aren't showing for some reason.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by ideasgirl
Hi qHome,
I installed new version and having following issues:
1-The model, weight (details) not showing,
2-I can't get the AaQ buttong to show up
Apparently you tried to move the details to another position (other than below the product name/price) and they aren't showing for some reason.
Ya, in this version I left all my customizations out of it and used the default zencart core template. so the model/weight/stock thing is back where it was on fresh zc install. I was going to include my version as well but wasn't sure if people liked it that way so I was leaving it open for decision. I will put the other version back in the zip when I upload it to the downloads area.
Tho I realize now that if you have the add to cart button set to be on tabs, and by default, I assume that the product details is above tabs. But since I went back to the default display template, the add to cart button is a combination of Addto cart, prod details, qty discounts, and attribs. I guess its just better off if I leave my version or separate the add to cart button and product details again.
Where are you putting the AAQ link at? be sure it is outside of the <!-- Tabbed products lite modification --> tags if you are putting it near the add to cart button off tabs, be sure you have the add to cart button set to be off tabs, otherwise if you want to add it on tabs, you will have to edit the tpl_tabbed_products_lite.php file to add it into the tabbed area. Got a link?
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Hi qhome,
really a great work, you are genial.
But one thing I not really miss, but it can make it better at all. It will be a switch (e.g. a checkbox) on the product.php in admin-area to choose if this article use tabs or not. But I think this is not to realize without doing changes to the core-code.
Also useable may be buttons on the html-editor to insert the soft-tabs.
But now, it a fine contribution and I will use it. THANK YOU.
Michael
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by michaelhl
Hi qhome,
really a great work, you are genial.
But one thing I not really miss, but it can make it better at all. It will be a switch (e.g. a checkbox) on the product.php in admin-area to choose if this article use tabs or not. But I think this is not to realize without doing changes to the core-code.
Also useable may be buttons on the html-editor to insert the soft-tabs.
But now, it a fine contribution and I will use it. THANK YOU.
Michael
:) ya every change i make I keep telling myself "just put this in the admin to make it easier". And now that I have it separate, I can easily put some logic in there to check if the database is set to true for displaying tabs. so I think that will be the next step.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
The thing is they aren't showing at all. I also just tried your instructions to edit the template and it gives an error as well (even from the original 1.3.5 template code) I tried it twice...
I'm inserting the AaQ code just like on my previous version (no, not between any tabbed code or loops). But I'm guessing has to do with the details not showing up as well. :unsure:
I will love to have the template organized like you did before. :yes:
-
1 Attachment(s)
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by ideasgirl
The thing is they aren't showing at all. I also just tried your instructions to edit the template and it gives an error as well (even from the original 1.3.5 template code) I tried it twice...
I'm inserting the AaQ code just like on my previous version (no, not between any tabbed code or loops). But I'm guessing has to do with the details not showing up as well. :unsure:
I will love to have the template organized like you did before. :yes:
Ok, well I would advise that you don't follow the Ask A Question directions because the author bundled the AAQ button with the Product Details. If you have product details disabled, then it will also disable the AAQ button.
However, if you are sure you don't have the Product details disabled, You should see them fine. Regardless, I have updated my demo site with the custom version I made that puts the Product Details at the top by the main image.
I've attached is my custom template files with the product details up by the main image and the ask a question actually ABOVE the product details as its own <div>. I also will show the code changes here.
In the tpl_product_display_info.php file (and the music and freeship ones as well)
FIND:
Code:
<!--eof free ship icon -->
RIGHT AFTER THAT PASTE:
Code:
<!-- bof AAQ Link -->
<div id="productQuestions" class="biggerText">
<b><?php echo '<a href="' . zen_href_link(FILENAME_ASK_A_QUESTION, 'products_id=' . $_GET['products_id']) . '">' . ASK_A_QUESTION . '</a>'; ?></b>
</div>
<!-- eof AAQ Link -->
<!--bof Product details list -->
<?php
if ( (($flag_show_product_info_model == 1 and $products_model != '') or ($flag_show_product_info_weight == 1 and $products_weight !=0) or ($flag_show_product_info_quantity == 1) or ($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name))) ) { ?>
<ul id="productDetailsList" class="floatingBox back">
<?php echo (($flag_show_product_info_model == 1 and $products_model !='') ? '<li>' . TEXT_PRODUCT_MODEL . $products_model . '</li>' : '') . "\n"; ?>
<?php echo (($flag_show_product_info_weight == 1 and $products_weight !=0) ? '<li>' . TEXT_PRODUCT_WEIGHT . $products_weight . TEXT_PRODUCT_WEIGHT_UNIT . '</li>' : '') . "\n"; ?>
<?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>' : '') . "\n"; ?>
<?php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li>' . TEXT_PRODUCT_MANUFACTURER . $manufacturers_name . '</li>' : '') . "\n"; ?>
</ul>
<?php }
?>
<!--eof Product details list -->
<br class="clearBoth" />
<div></div>
Then on Line 165 Find & Delete:
Code:
<!--bof Product details list -->
<?php if ( (($flag_show_product_info_model == 1 and $products_model != '') or ($flag_show_product_info_weight == 1 and $products_weight !=0) or ($flag_show_product_info_quantity == 1) or ($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name))) ) { ?>
<ul id="productDetailsList" class="floatingBox back">
<?php echo (($flag_show_product_info_model == 1 and $products_model !='') ? '<li>' . TEXT_PRODUCT_MODEL . $products_model . '</li>' : '') . "\n"; ?>
<?php echo (($flag_show_product_info_weight == 1 and $products_weight !=0) ? '<li>' . TEXT_PRODUCT_WEIGHT . $products_weight . TEXT_PRODUCT_WEIGHT_UNIT . '</li>' : '') . "\n"; ?>
<?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>' : '') . "\n"; ?>
<?php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li>' . TEXT_PRODUCT_MANUFACTURER . $manufacturers_name . '</li>' : '') . "\n"; ?>
</ul>
<br class="clearBoth" />
<?php
}
?>
<!--eof Product details list -->
THEN in the tpl_tabbed_products_lite.php file
FIND:
Code:
<!--eof free ship icon -->
RIGHT AFTER THAT PASTE:
Code:
<!-- bof AAQ Link -->
<div id="productQuestions" class="biggerText">
<b><?php echo '<a href="' . zen_href_link(FILENAME_ASK_A_QUESTION, 'products_id=' . $_GET['products_id']) . '">' . ASK_A_QUESTION . '</a>'; ?></b>
</div>
<!-- eof AAQ Link -->
Thats it.
The location I put the AAQ link in works good for both text link and image button link.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Ok, well I would advise that you don't follow the Ask A Question directions because the author bundled the AAQ button with the Product Details. If you have product details disabled, then it will also disable the AAQ button.
I'm not using swguy's AaQ module, I'm using Marg's one (so I just have to insert the code). Your new template it's perfect, I just took off your AaQ code and added mine where I wanted it. Worked perfect. Thanks for your great support and genious contribution. :smartass:
BTW, you DO need to take a look to your latest template code, because these aren't showing at all, and when following instructions from your "How To Port Your Template" file, gives an error.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by ideasgirl
BTW, you DO need to take a look to your latest template code, because these aren't showing at all, and when following instructions from your "How To Port Your Template" file, gives an error.
When you say "These" what are you referring to? the Product Details stuff?
I'll take another look, but I was pretty sure my step by step guide was working. I used it to make the freeshipping and music templates so I figured going through it a few times would have caught any problems but maybe there was something I didnt think of.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by qhome
When you say "These" what are you referring to? the Product Details stuff?
I'll take another look, but I was pretty sure my step by step guide was working. I used it to make the freeshipping and music templates so I figured going through it a few times would have caught any problems but maybe there was something I didnt think of.
If you are referring to the product details, thats because like i said above, my version assumed that they were always off the tabs.. but when i went back to default zc core product info file, they were within the add to cart chack range. So if you had add to cart on your tabs, you wouldn't have them under the tabs.. and that inludes add to cart, attribs, qty discount, and prod details. However, the tabbed data only included Add to cart, attribs, and qty discount.. No more prod details since 2.x.
So yea there is a slight problem there whether or not to just force people to have the prod details up top which IMO looks best. Or make it a separate call so people can still leave them at the bottom. It might be necessary to do that if people want to merge the tabs into their custom product info and leave the prod details where they are by default. Maybe I'll just make them separate.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
When you say "These" what are you referring to? the Product Details stuff?
Yes, product details list (model, weight, manufacturer, etc.)
Quote:
I'll take another look, but I was pretty sure my step by step guide was working. I used it to make the freeshipping and music templates so I figured going through it a few times would have caught any problems but maybe there was something I didnt think of.
Yes, I did it twice from clean/unedited 1.3.5 template_default file, without adding the AaQ code, and was giving the error.
Quote:
If you are referring to the product details, thats because like i said above, my version assumed that they were always off the tabs.. but when i went back to default zc core product info file, they were within the add to cart chack range.
Yes, you are right. (Maybe this is causing the error on you step by step edit?)
Quote:
So yea there is a slight problem there whether or not to just force people to have the prod details up top which IMO looks best.
IMO too.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
ok.. just tested the HOW TO PORT file again.. and you are kraaaaazy :P
It ports it perfectly.. still doesn't show the product details of course, but it doesnt give any errors at all.
One question.. are you copying the
Code:
=========================
part too? cuz u should NOT be. I was using those as dividers in that file only. That would cause a php error if u were.
No matter.. i think i will just update it to force people to move the product details stuff up top there. And maybe Ill put the PORT document into Word format so I can color code what you should and shouldn't copy so there are no extra parts being copied.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
One question.. are you copying the
:laugh: No, I'm not.
Quote:
and you are kraaaaazy
:unsure: I will try again and will report.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
I will try again and will report.
No, I was VERY carefull to add/edit as per instructions (I'm talking of your included file with the zip, haven't looked to your instructions, if any, on the thread).
Parse error: syntax error, unexpected $end in /home/***/public_html/***/includes/templates/burgandy/templates/tpl_product_info_display.php on line 269
***used to cover my directory
I checked for extra/unwanted empty lines at the end of the code, and there's any.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
OK,
I've uploaded the 3.5 FINAL to the downloads area. It has a few changes from the discussions ideasgrl and I had.
- The Product Details are moved up to the top under the Price by the Main Image now like I had them on the original 3.3 version.
- The 'How to Port to your Custom Template' document is HTML now and color coded to clear up any potential problems.
- I've updated the Port instructions to include the movement of the Product Details.
- Updated the included template files to include the changes to the Product Details moved up top.
I've checked through the instructions a few more times.. and still they work perfect so I dunno what ideasgrl did wrong :p
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
I've checked through the instructions a few more times.. and still they work perfect so I dunno what ideasgrl did wrong
Well, I didn't. I just checked your new instructions and follow step by step and worked as a charm. I did a comparison of instructions and, as I said before, looks like the product details issue was braking the code (as you mentioned it too).
On your old instructions the steps #3 and #6 of your new ones aren't present; so that should be it. :unsure:
I love this module, keep on your great job. :thumbsup:
Edit to add:
No, apparently there's a loop (it's repeating the atributes).
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Hello qhome,
There is something, what I didn't understand. The headline is there at Productdescription and at additional Images. It is also there at cross-sell and "customers also purchase", but it is white on white ground and only to see, when I click in it. When I click, it is to see so long, until the "what's new" scoller changes his picture. Then again white on white ground. What may this be?
Michael
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by michaelhl
Hello qhome,
There is something, what I didn't understand. The headline is there at Productdescription and at additional Images. It is also there at cross-sell and "customers also purchase", but it is white on white ground and only to see, when I click in it. When I click, it is to see so long, until the "what's new" scoller changes his picture. Then again white on white ground. What may this be?
Michael
Hmm I'm not sure I understand the question. Do you have a link I can look at?
Quote:
Originally Posted by ideasgirl
Edit to add:
No, apparently there's a loop (it's repeating the atributes).
??
-
Re: Tabbed Products ''LITE'' version - Delimiter based
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by michaelhl
It only appears to happen with IE.. Opera sees it fine.
check your template's stylesheet.css[/b] for:
Code:
h2.centerBoxHeading, .productListing-rowheading {
margin: 0em;
background-image: url(../images/tile_back.jpg);
font-size: 1em;
color: #ffffff;
padding: 0.5em 0.2em;
border-bottom: 1px solid #9a9a9a;
}
All headings use that code. I'm not sure why it seems to work on the first 2 tabs tho, since they all use the same call.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by michaelhl
But one thing I not really miss, but it can make it better at all. It will be a switch (e.g. a checkbox) on the product.php in admin-area to choose if this article use tabs or not. But I think this is not to realize without doing changes to the core-code.
Also useable may be buttons on the html-editor to insert the soft-tabs.
Agreed. Checkboxes on the admin product page to insert pre-set text (e.g. soft tabs) is highly desirable.
Q, were you able to do anything with the code I PM'd you awhile back, for this potential purpose?
Woody
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by Woodymon
Agreed. Checkboxes on the admin product page to insert pre-set text (e.g. soft tabs) is highly desirable.
Q, were you able to do anything with the code I PM'd you awhile back, for this potential purpose?
Woody
Yes and no. I got it working for the comments box on the orders page to give quick messages for shipping and status stuff, however, the fundamental problem with that was if you had your own text there first, then clicked a checkbox, it would overwrite your current text. So in essence it would also overwrite your product description. There maybe ways around that tho with a little digging.
The other problem that I couldn't seem to get around was this:
the product description textarea name was product_description[1] or something like that. The code would not work with the 1 in there. As soon as I did some hardcoded changes to test it, I changed it to product_description (without the 1) and it worked similar to the orders page one. But I couldn't understand why it wouldnt work with the 1 in it. But I have been leaning to put that and other stuff into the admin area so I will keep on truckin.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by qhome
The fundamental problem with that was if you had your own text there first, then clicked a checkbox, it would overwrite your current text. So in essence it would also overwrite your product description. There maybe ways around that tho with a little digging.
I observed the same behavior and unintentionally discovered a technique to avoid overwriting. I will play around to rediscover as I don't remember at the moment. It may have had to do with disabling the WYSIWYG editor... again not sure. I generally turn off web embedded WYSIWYG editors. The erratic behavior and burden on the client is too much to put up with.
Quote:
Originally Posted by qhome
The other problem that I couldn't seem to get around was this:
the product description textarea name was product_description[1] or something like that. The code would not work with the 1 in there. As soon as I did some hardcoded changes to test it, I changed it to product_description (without the 1) and it worked similar to the orders page one. But I couldn't understand why it wouldnt work with the 1 in it. But I have been leaning to put that and other stuff into the admin area so I will keep on truckin.
Thanks for the report. If you come up with anything let us know and I'll do the same.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by Woodymon
I observed the same behavior and unintentionally discovered a technique to avoid overwriting. I will play around to rediscover as I don't remember at the moment. It may have had to do with disabling the WYSIWYG editor... again not sure. I generally turn off web embedded WYSIWYG editors. The erratic behavior and burden on the client is too much to put up with.
yea well the orders comments page doesn't have wysiwyg anyway and it still happens there.. but yea i also leave all wysiwygs off.. Tabbed lite wouldn't even work properly if u entered tags thru the wysiwyg front end. they would just show up as text :P
I think it can be circumvented if instead of setting txtboxname = checkbox text, you just do txtboxname = txtboxname.text + checkbox text.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Hi,
I trid V3.5, it's greate.
We have added a field "products_warranty" in "poducts" table.
How can we make it to be dispayed as a tab automaticly.
Thanks
ERIC
-
Re: Tabbed Products ''LITE'' version - Delimiter based
TA DA!
- DATABASE CONFIG! Now all configuration settings are in Admin->Configuration->Tabbed Product Config. No more file editing :)
- Fixed a small typo.
- Updated the readme to refer to the admin configuration area.
Thats right folks.. Tabbed Lite is moving up in the world! It now has its configuration stuff in the admin area, saved to the configuration table in the database! No more file editing!
For being my first Admin controlled contrib.. I have to say it was quite easy! Once again in awe by the power of zencart :) I thought I needed a dozen or so admin files... turns out I only need a small database entry and to change a few variable pointers.
(only 3 files changed from 3.5):
/includes/modules/tabbed_products_lite.php
/includes/templates/YOUR_TEMPLATE/templates/tpl_tabbed_products_lite.php
/includes/languages/english/extra_definitions/tabbed_products_lite.php
So if you already have custom changes for 3.5 on your product info file, you can just upload these 2 files.
Then all thats left is to run the SQL from Admin->Tools->Install SQL Patches
Enjoy!
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by qhome
TA DA!
Crikey! You are some kind of freakin' genius!
Especially since you seemed to know that I'd just updated to your last version about 18 seconds before :)
Thanks yet again - the only help I can offer in return is to say that if you save your screenshots as png, they are (in the case of admin_example) 6k, and that's with no loss.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
lol.. Im too old fashioned for these new fangled image types. JPG till i Die! :P
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Qhome, is the attached 3.6 zip above a complete file set or do I need the 3.5 first?
Thanks!
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by BlessIsaacola
Qhome, is the attached 3.6 zip above a complete file set or do I need the 3.5 first?
Thanks!
It is complete.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
I joined just to thank you for this contribution.
I have been using zen-cart for about a year now and just normally surfed to find help, but now I need help that I can't find with your tabbed contrib.
Not spam:
On this site
http://www.bamachips.com/store/index...products_id=58
I need to know how to add the Required Info which is an attribute as a tab?
I am not too good with php but I have figured out alot on my own. I now have the TAB contrib added to almost all of the stores I maintain. The site above is still being tweaked since updating to the newest version.
Thanks for everything you all have done.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Oi oi smarty pants!
Nice work sir!
One nice contrib here!
I think your going to be pestered forever how to do custom tabs for XYZ.
Thanks for your work on this. :lamo:
-
Re: Tabbed Products ''LITE'' version - Delimiter based
just install the V3.6.
but under "Tabbed Products Config", there's only one item "Global Product Description Tab". There're 9 more in DB.
Did I do anything wrong ?
Eric
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by ericpeng
just install the V3.6.
but under "Tabbed Products Config", there's only one item "Global Product Description Tab". There're 9 more in DB.
Did I do anything wrong ?
Eric
Did you install everything in the SQL file at once? That should only happen if you do it all separately.
You are going to have to edit it in Phpmyadmin to change them all to match the same Configuration Group ID as the Global Products Description Tab settings in the "configuration" table.
I will see if i can make a simple update script to match if you need help. I'm not really sure how else to do it. I follow another contrib's example and had the same problem if I didn't do it all at once.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Eric, here is some sql that will delete the tabbed lite stuff from the database.
Code:
DELETE FROM `configuration_group` WHERE `configuration_group_title` LIKE 'Tabbed Products Config' LIMIT 1;
DELETE FROM `configuration` WHERE `configuration_description` LIKE 'Set this to 1%' LIMIT 10;
After that you should redo the original sql and make sure you do it all at once. either upload the file to the Install SQL Patches or copy the entire file from notepad and paste it in the window. That should solve the problem.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by qhome
Eric, here is some sql that will delete the tabbed lite stuff from the database.
Code:
DELETE FROM `configuration_group` WHERE `configuration_group_title` LIKE 'Tabbed Products Config' LIMIT 1;
DELETE FROM `configuration` WHERE `configuration_description` LIKE 'Set this to 1%' LIMIT 10;
After that you should redo the original sql and make sure you do it all at once. either upload the file to the Install SQL Patches or copy the entire file from notepad and paste it in the window. That should solve the problem.
Thansk.
But same problem. and i did it all at once.
I'll try in a new installation and see what happen.
Eric
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by ericpeng
Thansk.
But same problem. and i did it all at once.
I'll try in a new installation and see what happen.
Eric
Are you proficient in phpmyadmin enough to change the values? I will look into other, better way to add the tables so this doesnt happen.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by ericpeng
Thansk.
But same problem. and i did it all at once.
I'll try in a new installation and see what happen.
Eric
I trid in a new installtion. Same problem.
Any idea ?
Eric
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by qhome
Are you proficient in phpmyadmin enough to change the values? I will look into other, better way to add the tables so this doesnt happen.
I think I can do that. Is that my settings problem ?
Eric
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by ericpeng
I think I can do that. Is that my settings problem ?
Eric
The probolm is caused by the configration_group_id is not right
But i don't knwo how this happend.
Eric
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by ericpeng
The probolm is caused by the configration_group_id is not right
But i don't knwo how this happend.
Eric
Right. You need to look up what the configuration_group_id is in the configuration_group table
and then goto the configuration table and on the last page you will see all the settings for the contrib, but with the wrong group id.. just change to the correct group id.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by tncproweb
I joined just to thank you for this contribution.
I have been using zen-cart for about a year now and just normally surfed to find help, but now I need help that I can't find with your tabbed contrib.
Not spam:
On this site
http://www.bamachips.com/store/index...products_id=58
I need to know how to add the
Required Info which is an attribute as a tab?
I am not too good with php but I have figured out alot on my own. I now have the TAB contrib added to almost all of the stores I maintain. The site above is still being tweaked since updating to the newest version.
Thanks for everything you all have done.
Well do u just want all the options on one tab? Do you want them on the first tab or a second tab? By default i set all options to be stuck together with the add to cart button. You could add it to a tab, but it would still be a long list as it is now.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Just wondering if anyone has ever had troubles getting tab lite to work with image handler?
Some reason when tab lite is installed it takes away the zoom feature with image handler.
is there a fix for this?
Thanks in advance
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by knuckle-101
Just wondering if anyone has ever had troubles getting tab lite to work with image handler?
Some reason when tab lite is installed it takes away the zoom feature with image handler.
is there a fix for this?
Thanks in advance
Hmm I'm not having this problem. IH2 works fine for me. Do you have a link I can check?
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Sorry, thought I posted it Site in question.
I used this to lead you right to the images.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by knuckle-101
Sorry, thought I posted it
Site in question.
I used this to lead you right to the images.
After checking your page code.. you dont appear to have the image hover javascript file in your includes/templates/classic/jscript folder at all.
you need this file jscript_imagehover.js in that folder for IH2 to work. maybe you accidentally deleted it at some point while installing the tabs. I do see the tablite javascript code is there tho.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
LOL, I feel like an idiot, guess I forgot to upload it to the override.
Thanks
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by knuckle-101
LOL, I feel like an idiot, guess I forgot to upload it to the override.
Thanks
no problem :)
And for all you tab fans... (at least those in the USA) I feel compelled to share with you my new contrib that automates the process of creating mailing labels on the usps.com Click-n-ship site. GET IT NOW from my signature. Please excuse my shameless plug.. but it was a proud moment for me to get that working properly :)
-
Re: Tabbed Products ''LITE'' version - Delimiter based
nice indeed, its a nice asset to zencart.
:)
-
Re: Tabbed Products ''LITE'' version - Delimiter based
qhome,
Another question for you. If you visit here and click on additional images, you will notice that the background is shorter then the image span. Which part of the css do I have to edit to widen that?
Thanks
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by knuckle-101
qhome,
Another question for you. If you visit
here and click on additional images, you will notice that the background is shorter then the image span. Which part of the css do I have to edit to widen that?
Thanks
Actually on that link it looks like you broke the CSS file all together.. The tabs and images aren't showing at all.. just the link versions. but they aren't working.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Here you go try this Link
Sorry about that
-
Help with understanding tabbed lite
Okay so I have a completely customized product_info page, where the product image is in a certain place along with the shopping cart etc... I want to use the tabs stuff so I can put extra images, products also bought, and whatever other tabs I want to use.
From looking at the README file and the other documentation it seems that the way tabbed lite works is it uses the tpl_tabbed_products_lite.php to come up with the new format and the tabs. I get this from an "if" statement that would bypass my tpl_product_info_display php code and use the tabbed lite php code.
So my questions is, if I want to keep the format that I currently have for certain parts of the product_info page then what I have to do is make those same modifications to the tpl_tabbed_products_lite.php ? Correct? I can't make the mods to all my products because they have already been entered into the system and there are too many.
Thanks guys, zencart has been an awesome help and the community is to thank!
-- Fernando
-
Re: Help with understanding tabbed lite
Quote:
Originally Posted by castylx
Okay so I have a completely customized product_info page, where the product image is in a certain place along with the shopping cart etc... I want to use the tabs stuff so I can put extra images, products also bought, and whatever other tabs I want to use.
From looking at the README file and the other documentation it seems that the way tabbed lite works is it uses the tpl_tabbed_products_lite.php to come up with the new format and the tabs. I get this from an "if" statement that would bypass my tpl_product_info_display php code and use the tabbed lite php code.
So my questions is, if I want to keep the format that I currently have for certain parts of the product_info page then what I have to do is make those same modifications to the tpl_tabbed_products_lite.php ? Correct? I can't make the mods to all my products because they have already been entered into the system and there are too many.
Thanks guys, zencart has been an awesome help and the community is to thank!
-- Fernando
You would only have to edit the tpl_tabbed_products_lite.php file if you were making custom core tabs based on other modular contribs, or if you wanted a certain style ON the tabs.
The "if" statements don't bypass your tpl_product_info_display.php by default. They only check if they should bypass certain sections based on your settings in the admin configuration area. So you could add the all the if statements for your code, but set everything for the tabbed lite code to 0 and you wouldn't even know tab code was even on that page as it would just display normally. So if you have your main image stuff set up a certain way, be sure to set the "Main Image On Tabs" option to 0 and it will use your style instead of the tabbed style version.
If you run into any problems, let me know and I will see what I can do to help.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
qnome,
I meant look under the Customers Also Purchased tab (Probably my fault I named the wrong tab. tired as a flown bird going south so please ignore me). On this product page
Or you can see the screenshot I took attached to this post.
The images overlap the background.
Rob
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by knuckle-101
qnome,
I meant look under the Customers Also Purchased tab (Probably my fault I named the wrong tab. tired as a flown bird going south so please ignore me). On this
product page
Or you can see the screenshot I took attached to this post.
The images overlap the background.
Rob
Very strange.. It only happens like that on IE. I checked your CSS for the customersalsopurch class and it looks the same as mine. Im not sure what other change could be causing this. On FF it looks normal. But on it is also a bit weird cuz its all left justified.
There are also other sections of the page that are left justified that used to be centered.. it could be anywhere up the hierarchy of the css values
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Well, I have tried to make the hieght taller but no good? What would you suggest adding or editing to make it taller to expand passed the images?
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by knuckle-101
Well, I have tried to make the hieght taller but no good? What would you suggest adding or editing to make it taller to expand passed the images?
ah... looks like you fixed it??
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Not on the template I hoped for, cant figure it out on the other one. The other one is a friends website I just uploaded his template but no go so i just got fed up with it and switched back over to mine. Mine is a remake of the classic which this contrubition is compatiable with but I tried to compare the classic with the one I had uploaded but there is no comparision its totally written differently.
Rob
-
Re: Help with understanding tabbed lite
Quote:
Originally Posted by qhome
You would only have to edit the tpl_tabbed_products_lite.php file if you were making custom core tabs based on other modular contribs, or if you wanted a certain style ON the tabs.
The "if" statements don't bypass your tpl_product_info_display.php by default. They only check if they should bypass certain sections based on your settings in the admin configuration area. So you could add the all the if statements for your code, but set everything for the tabbed lite code to 0 and you wouldn't even know tab code was even on that page as it would just display normally. So if you have your main image stuff set up a certain way, be sure to set the "Main Image On Tabs" option to 0 and it will use your style instead of the tabbed style version.
If you run into any problems, let me know and I will see what I can do to help.
Okay so I have my products page, here is the example I want to give. In my product_info page I use a series of tables that have classes and use different settings(widths). It looks like the following (see below). You'll notice that the table uses a class called GenericBarHeading. In "non-tab" mode the GenericBarHeading is there, however when I go to tabbed mode, it disappears from the table. That's why I was asking if the tpl_tabbed_products_lite.php changes my format? Or does it simply use some tags in my products_info tab to know where to seperate the sections/tabs?
if ($products_description != '') {
if ($chkTabStart === false || $chkTabEnd === false) { // BEGIN custom tab exist check ?>
<!--bof Product description -->
<table width="585" border="0" cellspacing="0" cellpadding="0">
<!--DWLayoutTable-->
<tr>
<td valign="top" style="height:50 ">
<table width="576" border="0" cellpadding="0" cellspacing="0" class="GenericBarHeading" style="height:27px ">
<tr>
<td class="text_2" style="color:#FFFFFF "><img src="images/plus_2.jpg" width="11" height="11" alt="" style="margin-left:10px; margin-right:7px ">Description
</td>
</tr></table>
</td>
</tr>
<tr>
<td valign="top" style="height:218 "><table width="585" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="467" valign="top" class="text_1">
<div id="productDescription" class="productGeneral biggerText"><?php echo stripslashes($products_description); ?></div>
<!--eof Product description -->
<?php
If ($bAddToCart || $bMediaCollection || $bAdditionalImages || $bCustomersAlsoPurchased || $bCrossSell_Tab) {
require($template->get_template_dir('/tpl_tabbed_products_lite.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_tabbed_products_lite.php');
}
} else {
require($template->get_template_dir('/tpl_tabbed_products_lite.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_tabbed_products_lite.php');
}
}
?>
<!-- eof: Tabbed Product Lite Modifications -->
-
Re: Help with understanding tabbed lite
Quote:
Originally Posted by castylx
Okay so I have my products page, here is the example I want to give. In my product_info page I use a series of tables that have classes and use different settings(widths). It looks like the following (see below). You'll notice that the table uses a class called GenericBarHeading. In "non-tab" mode the GenericBarHeading is there, however when I go to tabbed mode, it disappears from the table. That's why I was asking if the tpl_tabbed_products_lite.php changes my format? Or does it simply use some tags in my products_info tab to know where to seperate the sections/tabs?
if ($products_description != '') {
if ($chkTabStart === false || $chkTabEnd === false) { // BEGIN custom tab exist check ?>
<!--bof Product description -->
<table width="585" border="0" cellspacing="0" cellpadding="0">
<!--DWLayoutTable-->
<tr>
<td valign="top" style="height:50 ">
<table width="576" border="0" cellpadding="0" cellspacing="0" class="GenericBarHeading" style="height:27px ">
<tr>
<td class="text_2" style="color:#FFFFFF "><img src="images/plus_2.jpg" width="11" height="11" alt="" style="margin-left:10px; margin-right:7px ">Description
</td>
</tr></table>
</td>
</tr>
<tr>
<td valign="top" style="height:218 "><table width="585" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="467" valign="top" class="text_1">
<div id="productDescription" class="productGeneral biggerText"><?php echo stripslashes($products_description); ?></div>
<!--eof Product description -->
<?php
If ($bAddToCart || $bMediaCollection || $bAdditionalImages || $bCustomersAlsoPurchased || $bCrossSell_Tab) {
require($template->get_template_dir('/tpl_tabbed_products_lite.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_tabbed_products_lite.php');
}
} else {
require($template->get_template_dir('/tpl_tabbed_products_lite.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_tabbed_products_lite.php');
}
}
?>
<!-- eof: Tabbed Product Lite Modifications -->
Ah, then yes you would have to make those changes to the tpl_tabbed_products file as well... it probably wouldn't be too hard. Let me know if you need help, its just a matter of copy/pasting all the table tags in between the tab divs
-
Re: Tabbed Products ''LITE'' version - Delimiter based-need help with error
I must have messed something up while trying to get your contrib to work. It looks great by the way, and would love to have it on my site however being new to zen I'm sure I just don't have something in the proper place. It doesn't run right out of the box for me. I have a new 1.3.5 store, no customizing done as of yet however I get this error on a few of my product pages:
Warning: main(includes/modules/tabbed_products_lite.php) [function.main]: failed to open stream: No such file or directory in /home/whippers/public_html/includes/templates/classic/templates/tpl_product_info_display.php on line 20
Warning: main(includes/modules/tabbed_products_lite.php) [function.main]: failed to open stream: No such file or directory in /home/whippers/public_html/includes/templates/classic/templates/tpl_product_info_display.php on line 20
Fatal error: main() [function.require]: Failed opening required 'includes/modules/tabbed_products_lite.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/whippers/public_html/includes/templates/classic/templates/tpl_product_info_display.php on line 20
Could you help a newbie step through the process. Your help file was great, but I was confused as to exactly where I should be uploading your files. Also, should I have uploaded complete folders or just the files inside of them? I uploaded the files to /public_html/includes/templates/classic (for the ones pointing to templates/my_template) and ran the sql patch. Is this the correct path?
Any simplified help would be appreciated.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Nevermind, I found my error. I didn't have the file in the right location. Moved it and the error was resolved. Thank you for your contribution. This will be very handy!
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by qhome
Well do u just want all the options on one tab? Do you want them on the first tab or a second tab? By default i set all options to be stuck together with the add to cart button. You could add it to a tab, but it would still be a long list as it is now.
I want it in its own tab, doesnt matter to the customer how long it is as long as it it is more noticeable.
Sorry it took me so long to respond
-
Re: Tabbed Products ''LITE'' version - Delimiter based
SQL problem?
i ran the SQL patch through the zencart interface, but the only value showing up under the configuration --> tabbed products config table is "global product description tab".
so i restored my backed up database, and tried again with cut-and-paste via phpMyAdmin. same thing.
i want to have the product image, title and price display under the tabs header. as far as i can tell from reading this long thread, i need to turn on mainimageontabs. but that's not showing up.
any idea?
this is a week-old installation of zencart 1.3.5. a few mods so far, all carefully backed up.
here's one of the product pages.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by p m
SQL problem?
i ran the SQL patch through the zencart interface, but the only value showing up under the configuration --> tabbed products config table is "global product description tab".
so i restored my backed up database, and tried again with cut-and-paste via phpMyAdmin. same thing.
i want to have the product image, title and price display under the tabs header. as far as i can tell from reading this long thread, i need to turn on mainimageontabs. but that's not showing up.
any idea?
this is a week-old installation of zencart 1.3.5. a few mods so far, all carefully backed up.
here's one of the
product pages.
Hi P.M.,
Ericpeng also had this problem. And I know I've run into this in the past as well. I'm not sure exactly why it does it, but sometimes the database doesnt hold the value of last_insert_id(). A few posts up I give instructions on how to delete those records and try again but i think ericpeng had to actually edit them inside phpmy admin and change the configuration_group_id to match the latest group.
Try copy and pasting the contents of the sql file into the textarea as opposed to uploading the file. or try both and see if any of them work. Be sure to do the whole file as one step.
Anyone else with db skill know a better way of doing it?
-
Re: Tabbed Products ''LITE'' version - Delimiter based
i'd already tried to restore and then retry using cut-and-paste from the SQL file, and it didn't work. based on ericpeng's experience, i went right to phpMyAdmin.
and it worked! i was surprised -- i'd never edited an SQL table before.
i'll go through the steps one by one:
1. in phpMyAdmin --> table: configuration_group:
Tabbed Products config (last on the list because most recently installed) has configuration_group_id of 32 (in my zencart installation -- this would vary for others)
2. in phpMyAdmin --> table: configuration:
the last ten items on the list (#592-601 on my set-up) list are the elements of tabbed products config. the first one, Global Product Description Tab, had the correct corresponding configuration_group_id of 32.
the others had the wrong value in that column, in a particular pattern = (n-1), where n = # on the item list in the configuration table (#592-601, as i mentioned). so Global Main Image On Tab, #593 in my table, had a configuration_group_id of 592, and Show Tab Headers when Javascript is Off, #601 had a configuration_group_id of 600.
someone who knows more about SQL than i do should be able to figure out the syntax error from that description, right?
3. select the 9 incorrect items and edit ("change"). insert the correct corresponding value for configuration_group_id (#32 in my case) in all items and save.
4. browse zencart admin to configuration --> tabbed products config, and there they all are...
hope that helps.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by p m
i'd already tried to restore and then retry using cut-and-paste from the SQL file, and it didn't work. based on ericpeng's experience, i went right to phpMyAdmin.
and it worked! i was surprised -- i'd never edited an SQL table before.
i'll go through the steps one by one:
1. in phpMyAdmin --> table: configuration_group:
Tabbed Products config (last on the list because most recently installed) has configuration_group_id of 32 (in my zencart installation -- this would vary for others)
2. in phpMyAdmin --> table: configuration:
the last ten items on the list (#592-601 on my set-up) list are the elements of tabbed products config. the first one, Global Product Description Tab, had the correct corresponding configuration_group_id of 32.
the others had the wrong value in that column, in a particular pattern = (n-1), where n = # on the item list in the configuration table (#592-601, as i mentioned). so Global Main Image On Tab, #593 in my table, had a configuration_group_id of 592, and Show Tab Headers when Javascript is Off, #601 had a configuration_group_id of 600.
someone who knows more about SQL than i do should be able to figure out the syntax error from that description, right?
3. select the 9 incorrect items and edit ("change"). insert the correct corresponding value for configuration_group_id (#32 in my case) in all items and save.
4. browse zencart admin to configuration --> tabbed products config, and there they all are...
hope that helps.
Thank you P.M. for detailing those steps! Glad you got it working and that it was easy enough for you. I am still trying to find out a better way.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
qnome,
When I turn on cross sell, it gives a parse error, and then when i turned it on before upgrading to 3.6 the product description would disappear, any idea why?
Cross sell is installed.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
ok, parse fixed, product description still missing.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Q-
Pretty cool, TPL 3.6 admin edition is. Installed on a fresh ZC 1.35 and have not done much configuration or mod loading yet (IH2, Xsell or AAQ).
Any "ez" method to place product details on a tab (could be it's own tab or on same tab as product description or on same tab as add to cart) but leave main product image, product name and price above tabs?
Woody
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Any idea whats causing this error?
Code:
Warning: ereg_replace(): REG_EMPTY in /home/again/public_html/includes/templates/template_default/templates/tpl_tabbed_products_lite.php on line 89
thanks
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by knuckle-101
Any idea whats causing this error?
Code:
Warning: ereg_replace(): REG_EMPTY in /home/again/public_html/includes/templates/template_default/templates/tpl_tabbed_products_lite.php on line 89
thanks
That is called from the Additional Images code that I replicated from zen-cart core code. Im surprised you'd ever see that error as it must pass 5 outer logic statements to even reach that. Did you edit something that would break that?
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Im sorry , forgot to repost the fix, the error was caused from a image that did not have an extension jpg, gif so on.
Anyone who uses this mod, make sure you have extensions at the end of the image you upload for the product.
Rob
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by knuckle-101
Im sorry , forgot to repost the fix, the error was caused from a image that did not have an extension jpg, gif so on.
Anyone who uses this mod, make sure you have extensions at the end of the image you upload for the product.
Rob
As that code is just a copy of the zen-cart core code, I'd say you might have the same problem even without this contrib for the additional images section.. but im not sure.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
All I can say is I am extremely excited by this mod. When I checked out the demo my jaw dropped because it is about as perfect fit as anyone could ask for.
However, trying to get it to work has been a different story. I tried it on my website first because I was at work at the time and wanted to see how easy it would be to implement. Everything seemed to work fine except that for the tabs all I got were links. When you clicked on the links you saw the different information like it was a tab, just no tab images.
So I get home to try it out on my test server (WAMP5) but I keep getting a parse error thats flagging the very last line in the product info display file. I'll have to dig that up later as I have been trying to work out the issues with no luck.
Ive read over the installation files but Im not getting a clear understanding of how this thing installs. In my template directory (on the web server where I had at least a partial working example) I just have the default folders, classic and template_default.
What Im not clear on I guess is do I just copy the files to the template_default folder in the given locations (css, jscript, images, etc) or do I create a new folder in that directory, for example 'mytemplate'? If so, the only way I can get ZC to recognize that that folder is there is to copy the template_info file from one of the other directories to it. Even then when I use it, the css is all gone. The only way I have been able to get it to partially work is to just copy the files to the correct directories in the template_default folder and as mentioned above I dont see the tabs, just the links.
I downloaded an additional template just to see if I could get it to work with that, but I guess Im just not grasping how the template structure works. Im obviously new to ZC but I thought I could work all this out but no joy so far. So I would appreciate any direction anyone would care to offer. This contrib seems perfect for me and would love to get it to work. I looked for an updated set of installation instructions but couldnt find anything and I read through the first few pages of this thread, but its quite extensive and I havent found anything in the search so far.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Hi,
Earlier in this thread you had given a link to a custom tpl_product_info_display file to show the tabs to the right of the product image. Since upgrading the to newest version this file no longer works correctly and the new tpl_product_info_display file is so totally different I can't seem to decipher where to place the table and set it up again.
Any chance you have already done this and are willing to part with the finished file again?
Thanks
Rick
P.S. I know you have already had many accolades on this mod but in my opinion it is probably the best mod for zen cart I have seen. Great work!!
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by SyntheticShield
All I can say is I am extremely excited by this mod. When I checked out the demo my jaw dropped because it is about as perfect fit as anyone could ask for.
However, trying to get it to work has been a different story. I tried it on my website first because I was at work at the time and wanted to see how easy it would be to implement. Everything seemed to work fine except that for the tabs all I got were links. When you clicked on the links you saw the different information like it was a tab, just no tab images.
So I get home to try it out on my test server (WAMP5) but I keep getting a parse error thats flagging the very last line in the product info display file. I'll have to dig that up later as I have been trying to work out the issues with no luck.
Ive read over the installation files but Im not getting a clear understanding of how this thing installs. In my template directory (on the web server where I had at least a partial working example) I just have the default folders, classic and template_default.
What Im not clear on I guess is do I just copy the files to the template_default folder in the given locations (css, jscript, images, etc) or do I create a new folder in that directory, for example 'mytemplate'? If so, the only way I can get ZC to recognize that that folder is there is to copy the template_info file from one of the other directories to it. Even then when I use it, the css is all gone. The only way I have been able to get it to partially work is to just copy the files to the correct directories in the template_default folder and as mentioned above I dont see the tabs, just the links.
I downloaded an additional template just to see if I could get it to work with that, but I guess Im just not grasping how the template structure works. Im obviously new to ZC but I thought I could work all this out but no joy so far. So I would appreciate any direction anyone would care to offer. This contrib seems perfect for me and would love to get it to work. I looked for an updated set of installation instructions but couldnt find anything and I read through the first few pages of this thread, but its quite extensive and I havent found anything in the search so far.
Ah :) Welcome to Zen-Cart. Yes the confusion is in the template directory structure. See Zen-cart uses whats known as Zen-Magic... whereby default core files can be overridden by adding additional folder structure with the same name within the base folder. "HUH!?" :P See in your templates folder you have template_default, and classic. By default, your store will use the classic design. The Classic design has files for custom images, color schemes, and some basic layout options. Mostly CSS changes. The bulk of all the display code is in the template_default folder.
It is HIGHLY recommended that you NEVER overwrite any files in the template_default folder. Via the use of Zen-Magic, you can follow the structure of the templates_default folder inside the classic (or any other custom theme you use) template. So you would put the tab jscript, css, templates, images stuff inside the root of the "includes/templates/classic/" directory.
In the Admin panel goto TOOLS->TEMPLATE SELECTION and ensure that classic is selected. If you want to use a different template, you will also have to copy the tab files into that template folder the same way you did the classic one.
The reason you are seeing only links is because it is not finding the CSS file in the right spot.
There is a small learning curve with Zen-Cart and the way it is structured, but after a short time you see why it is like that and why it works so well.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by disciple
Hi,
Earlier in this thread you had given a link to a custom tpl_product_info_display file to show the tabs to the right of the product image. Since upgrading the to newest version this file no longer works correctly and the new tpl_product_info_display file is so totally different I can't seem to decipher where to place the table and set it up again.
Any chance you have already done this and are willing to part with the finished file again?
Thanks
Rick
P.S. I know you have already had many accolades on this mod but in my opinion it is probably the best mod for zen cart I have seen. Great work!!
Hi Disciple,
I will make another quick version for you :)
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by qhome
Ah :) Welcome to Zen-Cart. Yes the confusion is in the template directory structure.
See also:
http://www.zen-cart.com/wiki/index.p...on_-_Templates
http://www.zen-cart.com/wiki/index.p...lates_-_Layout
http://www.zen-cart.com/forum/faq.ph...late_customize
Quote:
Originally Posted by qhome
There is a small learning curve with Zen-Cart and the way it is structured, but after a short time you see why it is like that and why it works so well.
Small I've been here 3 years and I STILL don't know how to over-ride some modules and pages such as html_output and application_top.
Quote:
Originally Posted by disciple
P.S. I know you have already had many accolades on this mod but in my opinion it is probably the best mod for zen cart I have seen. Great work!!
Hear hear! (Or is it "here here"? I never know!)
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by kelvyn
Small I've been here 3 years and I STILL don't know how to over-ride some modules and pages such as html_output and application_top.
:P Shhhh we dont want to scare him.. let the zen poison..... errr.... fill his soul first :)
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by qhome
Hi Disciple,
I will make another quick version for you :)
Try this one out. This is only a custom template file for those who want tabs on the right of their main product image.
This is NOT a new release.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
tagging this for later.. quickly tried it on my test site and I like it :)
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by getyourgameshere.com
tagging this for later.. quickly tried it on my test site and I like it :)
Good to hear :)
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Can someone please step me through how to add a tab called backgrounds, that would show all background options for products.
All my backgrounds are in a certain directory and would like the tab to show all the backgrounds in that directory.
Can anyone help me?
Thanks
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by sfdesign
Can someone please step me through how to add a tab called backgrounds, that would show all background options for products.
All my backgrounds are in a certain directory and would like the tab to show all the backgrounds in that directory.
Can anyone help me?
Thanks
When you say Background options, are you referring to background images that you want shown out of a folder?
You would need a module and a template similar to the additional images module/template that would pull those images out of your specific folder. Unless it follows the normal attribute options. Then by default I have it set to the first tab. However I have been wrestling with ideas to place things on different tabs.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Yes exactly pulling images from a specific folder that would show when you click on the backgrounds tab. By default show small images, but could click to enlarge.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Wow what a contribution, Love it qhome Thank You
Ive installed on a test site but I am having a problem with
my Additional Images Tab. I only get a link to the image
but I would like the actual image on that tab.
Ive tried making a new tab "Specifications" and just putting the image
there,but no luck.
Any Suggetstions????
here is the product specifically
http://www.nationalvinylfence.com/in...&products_id=3
Thanks for any help you can offer.
*****UPDATE*******
Tried it one more time, my custom tab works now, but still Additional Images is a no show
-
Re: Tabbed Products ''LITE'' version - Delimiter based
LOL :P
I must say this is one incredible contrib I created.. every week some new, unexpected, unconceivable problem comes up and I'm baffled every time how some of this stuff can be. :P
I see the image is baron36.jpg & baron36_MED.jpg.
I assume the MED version is in the MED folder. Can you try putting that file into the root images folder to see if that fixes it.
I will look at some stuff over here as well.
We'll get you fixed up :)
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by qhome
LOL :P
I must say this is one incredible contrib I created.. every week some new, unexpected, unconceivable problem comes up and I'm baffled every time how some of this stuff can be. :P
I see the image is baron36.jpg & baron36_MED.jpg.
I assume the MED version is in the MED folder. Can you try putting that file into the root images folder to see if that fixes it.
I will look at some stuff over here as well.
We'll get you fixed up :)
^ you assumed incorrectly :P.. this is where the image is located: http://www.nationalvinylfence.com/im...aron36_MED.jpg
The only thing wrong here is where he or she has put the images :).. at least thats what it seems like
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by getyourgameshere.com
LOL ah yes.. i didnt even bother to notice the rest of the image path when i took a look. I'm unsure how the additional images module handles other folders other than:
/images
/images/med
/images/lrg
Thanks GYGH for noticing that :)
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by qhome
LOL ah yes.. i didnt even bother to notice the rest of the image path when i took a look. I'm unsure how the additional images module handles other folders other than:
/images
/images/med
/images/lrg
Thanks GYGH for noticing that :)
No prob :).. out of curiosity, how well does this play with the IH2 contrib? I haven't had much time to search around and play with it myself.. just trying to set my priorities straight before trying to tackle it.. so much college work !
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Thanks for looking guys
I just made several sub-folders in the images folder
med,medium,lrg,large
and put each image in their respective folder.
as well as copies of those same images in the root of images
baron36_MED.jpg
baron36_LRG.jpg
Its still missing Additional Images but as you
see I got the individual "Schematics"tab working.
Not sure why it wasnt showing up immediately for that new tab
but is it possible Im looking too soon?
Thanks qhome and GYGH
and of course the awesome Zen Team
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by HeadScratcher
Thanks for looking guys
I just made several sub-folders in the images folder
med,medium,lrg,large
and put each image in their respective folder.
as well as copies of those same images in the root of images
baron36_MED.jpg
baron36_LRG.jpg
Its still missing Additional Images but as you
see I got the individual "Schematics"tab working.
Not sure why it wasnt showing up immediately for that new tab
but is it possible Im looking too soon?
Thanks qhome and GYGH
and of course the awesome Zen Team
I think you may still be confused about the directory structure of additional images.. so lets see if i can help you out here :)
your original image is located in...
images/semi_privacy/baron36.jpg
So, any small size images should also go into that same folder. Lets say you have 2 additional images, you would place them like this:
images/semi_privacy/baron36_1.jpg
images/semi_privacy/baron36_2.jpg
Note the _1, _2 after the image name. Zencart sees the original image's name as a prefix. OK. Halfway there!
Now you need "LRG" versions of them. if you're already using a decent sized image, you can use them as the _LRG versions as well. Copy them over to this folder:
images/large/semi_privacy/baron36_1_LRG.jpg
images/large/semi_privacy/baron36_2_LRG.jpg
Once you have that done, it should show up correctly