Hey!
Is it possible to move xsell to the tab? I use cross-sell on 1.3.8 and xsell is shown bellow tabs
edit: eh..nevermind..stupid me
tnx
Printable View
Hey!
Is it possible to move xsell to the tab? I use cross-sell on 1.3.8 and xsell is shown bellow tabs
edit: eh..nevermind..stupid me
tnx
I am trying to change the content (font size, style, color) of the "Details" tab. Help please. :frusty:
You will have to edit CSS to make these changes. Look for div#productDescription in the stylesheet.css[/QUOTE]
Thanks for the quick reply, however, I can find no such animal. Only 1 "ProductDescription" comes up, and changing the #em does no good. It's ONLY the "details" tab I want to change (Model, Weight, Manufacturer) It's too hard to read and need some padding between the lines. Here's a page for example. Click on the Details tab and compare to the other ones > HERE
<br>
Maybe I'm just missing something. I'm in "/public_html/includes/templates/iC_AthemeV1.3/css/stylesheet.css"
Any more thoughts ?
thanks,
Paul
Thanks.. I understand what you're saying, but just don't know how to do it. I already have Firefox tool Developer, but get totally lost on that. I have no idea how to find a DIV. I'm still learning this stuff, have come a long way, but still end up on dead ends. Any additional help would be most appreciated.
thanks,
You have several CSS files used on the Product Info page.
You Details tab is contain in div#sc4. The following CSS code
will affect the size of the Details tab content only.
It can be placed in your stylesheet.css or your alt_tpp_tabs13.css. Give it a try and let us know.Code:div#sc4 {font-size: 1.5em;}
Like DivaVocals says, getting the Firefox developer tools will greatly assists you in finding these sorts of things.
I installed Tabbed Products Pro and am quite happy with it. Thanks!
I have one question though: Is it possible to apply tabs to other product types besides 'id=productgeneral'?
With regards,
Paul
Goldlion
I have installed this mod on my site to test it out. I like the idea but I ran into some issues with the way it display on my site.
I have done some changes to the <div class> to add the image for the header, content and footer. When adding the code in the tpl_product_info_display it called on the tabbed_products_pro which overrides the styles of my custom template.
Here is a link to the site without the tabbs:
http://www.coolcarpartsonline.com/eb...thout_tabb.JPG
This is the site with the tabbs installed:
http://www.coolcarpartsonline.com/eb..._with_tabb.JPG
What I am trying to acheive is saving my center box layout and remove the Product Description,detail etc.... from showing inside the tabbs.
Please anyhelp will be appreciated. I am pulling my hair off right now trying to figure out what to add to the tabbed_products_pro module.
Well you need to just manually add the 3 code chunks to your custom tpl_product_display_info.php. But you need to put the 2nd chunk, which is the tab placement code, somewhere else.. move it around to find the best place for it.
You also need to disable "Global Product Description on Tab" and "Details on Tab" so that they aren't on tabs
Hey, great addon! I'm having a big problem though.
I have to require a custom file in my product_info_display.php file.
http://www.shoppingitonline.com/inde...3ff50f87255d0c
You can see my problem there. Those [[tags]] should be showing up as links to popups not the way they are. I believe its a problem with the require that tabbed product pro uses. When I don't have:
<?php
//BOF :: Tabbed Products Pro ::
require(DIR_WS_MODULES . 'tabbed_products_pro.php');
//EOF :: Tabbed Products Pro ::
?>
in my code, my tags work fine. Would anyone know how to work around this? I must include this code:
require_once('tags.php');
or my tags will not work. I have a feeling that this require is overwriting the tags one or something. Any help would be very appreciated! Thanks!
AHA I figured it out! by adding
function readtags($desc){
$tags = array(
'academic' => "academic.htm",
'5moneyback' => "5moneyback.htm",
'60moneyback' => "60moneyback.htm",
'60daypopup' => "60daypopup.htm",
'AE' => "ae.htm",
'OEM' => "oem.htm",
'faqpopup' => "faqpopup.htm"
);
$srcFolder = "includes/custom/";
foreach($tags as $tag => $file){
$desc = str_replace('[['.$tag.']]', file_get_contents($srcFolder.$file), $desc);
}
return $desc;
}
and
$proddata = stripslashes(readtags($products_description));
if ($proddata != "") {
to the tabbed_products_pro.php file i managed to overcome my obstacle!
I did try that before using the zen cart original tpl_product_info. My current template use custom background but now the background is white, I tried to use the developer toolbar and locate all the div and change the class or div name to match my template but for some reason I can't get the background to show on the product info page
I want to start using this mod soon, But I want to add a tab for additinal information. Does the tags included work good with creating a new tag in the product description OR I have to use another mod to do that.
Is there a mod that will do that and can be integrated with this mod.
I have a few items that I will need to display the additional information for.
Another question is, I have a mod installed that add description to the manufacturer using the admin panel under the manufacturer tab. Is there a way to add a code to the detail tab to display the manufacturer description under the manufacturer name. The manufacturer mod I am using modifies the manuffacturer database.
I have got this mod to blend with my site theme. A few things have came up though:
1 Under the review tab there is additional <div class="centerboxFooter> There is only one of these div in the product info page. Also the gap on the top of the review text. The issues are only visible in FF not IE
2. How can I make the border-bottom to start from the beginning of the tab not from the absolute left. The tabs have a padding-left of 15px but that didn't move the border!!!
Here is a link: http://www.coolcarpartsonline.com/ac...ke-p-5045.html
Ok Sorry to keep bumping this up but I had the Slimbox mod and the Image handler Installed on the site and now neither one is working....That is weired but neither one is working. I know they both run on javascripts too but I am not sure if that had something to do with it.
Again If I remove the tabbed_products_pro from the module and remove the script for the template/script Fual Slimbox will work again. I have alot of other scripts that are working on the site and it seems that this one is the only one that enterfere with Fual Slimbox. I would love to continue using both of them.
Hi, this is a very nice mod!
I have a question. I have the dual-pricing/wholesale pricing mod installed. So there is that extra user account field of whether the person is approved to see the wholesale pricing.
I was wondering if you knew a way that I could make a particular tab visible CONDITIONAL on whether the person was allowed to see wholesale prices.
I don't think this should be that hard, it's just that I'm not sure where and what edits I would make to the mod to create that effect.
Thanks.
Chris
And there's the rub.. If it was ONLY one add-on, then it might be easy for someone on one of these support threads to help you. But if you're running several add-ons it makes troubleshooting your issue exponentially more difficult..
Unfortunately there's no quick fix for this unless someone had the EXACT same problem you've had, and knows the answer.. I suspect that there is an issue in one of your other add-ons or your installation of these add-ons. Like I said I have these add-ons working happily together..
My suggestion (because it's what I would do personally) Is to try doing a vanilla ZenCart install and before you install ANY of your other add-ons, start with this one and the Fual Lightbox, and see if you can narrow down the issue you are having with these two.. Also I'd suggest re-downloading these add-ons to make sure that something strange didn't happen when you downloaded the files the first time.. If the issue is these two add-ons, you need to isolate them from the rest of your cart installation to help narrow down the issue..
BTW, when I say do a vanilla install.. I am not suggesting trashing your current cart and starting over.. I mean install another copy of ZenCart into a test directory so you can troubleshoot..
I have already re-installed these 2 mods. It would be easy to narrow it down when you are doing a new site. But I already have tons of mods installed on the site and tons of other JavaScript. I will wait and see if someone else ever had that issue before. Otherwise I will let someone look at the files and see whats going on.
You should correct some of the HTML errors as that might help to sort things out.
i.e.
<center><a href...manufacturers_id=35"><center/>
URL shortened on purpose.
http://validator.w3.org/ << a good online Validator
OK, I solved my problem and was able to modify the module so it shows certain tabs depending on whether the person had been set up as a wholesale customer or not.
It was actually a whole lot simpler than it originally looked. Like 2 if...then statements.
If anybody has an interest in this themselves, let me know.
Chris
I have been using this mod and it works very well. I use it for the products-general. I would like to add music. I tried to load one product to see and it does not work. Looked thru the forum, but did not see anything.
How do I add to product-music?
To be honest, I personally think the other product types are a joke. They add so little, and do it poorly. So I never bothered to support them. I use product general for all types: document, music, anything using the product description area.
If you add the 3 snippets of code from the readme to the tpl_product_info_music_display.php file, does it work?
I'm currently running TPP v1.01 and was wanting to upgrade to the newest version, in hopes of correcting an issue it was causing with the Zen Lightbox add-on.
First the issue:
If I have only one image per product, Lightbox displays a 'NEXT' link when presenting the image, as if there were additional images to view. Clicking on 'NEXT' shows the same image, with the 'PREVIOUS' link, allowing you to return to the "first" (and only) picture for that product.
This behavior is apparently due to TPP incorporating the product image in the 'REVIEW' tab somewhere; by disabling the product review tab altogether in TTP admin, Lightbox displays the single image, correctly omitting the 'NEXT' image link.
What controls images with relation to the TPP product review tab, and where would I edit to remove that bit? I would like to include the Review tab with my product listings.
Would TPP 1.05 correct this issue?
Finally, if I were to upgrade from TPP v1.01 to v1.05, would I simply run the SQL script, or should everything from v1.01 be removed? Or would just copying over the new file structure suffice?
Thanks for a great mod!
-DBB1
You would run the upgrade sql which would delete the existing settings and add back the new features as well as the default settings. So you'd have to keep a quick log of what was set to yes or no.
then upload all the files and replace the existing ones.
I'm not aware of any lightbox problem so I don't know if it's fixed. You can let us know.
Nope. The upgrade to TPP v1.05 didn't address the issue.
Apparently, the product image is being repeated in the REVIEWS code, which makes Lightbox think that there is a second image.
Where would I look to comment this repeated image out, so that I can use product reviews and Lightbox together?
Thanks,
-DBBI
I am trying to find product info display template to make rthe modifications but with no joy. As it stands I am not getting any tabs at all.
My site is www.electronicgiftshop.co.uk
I am using zencart 1.3.8 and a modified version of Apple Zen
I am running Hoverbox3 and IH2
If I could only find the file????
Cheers
Lee
Is there a way within TPP to change the way the heading within the tab (not the ones across the top) display? Currently, it's using '<h2 class="centerBoxHeading"> I don't want that kind of header in this location.
I think I can get it done going into each template (xsell, also purchased, etc) but I'd like a more centralized approach. Can I add something in one of the tpp stylesheets?
Cheers,
I got the tabs working but for some reason if a product is under the category Free Shiping they still dont diplay.
Any assistance would be greatly appreciated?
Many thanks
Lee
Site: www.electronicgiftshop.co.uk
Ah ok. Well the reason for this is because the core reviews page does have the main image on it. But since I'm including it as part of the display page, I use javascript to hide it. I guess the lightbox javascript is alphabetically higher in the execution chain so it acts on it first. You can edit your tpl_product_reviews_default.php file to remove the main image stuff from it.
Not sure what you mean. You should have an includes folder.. you'd copy that over your includes folder on your site.
centerBoxHeading is what the core template normally has so I left it there. If you want to change it you can do it in includes/modules/tabbed_products_pro.php and global replace "centerBoxHeading" with the class you'd prefer.
I only set it to work with tpl_product_display_info.php. Not for the other product types like freeshipping or music or documents. If I have time I'll see about adding them.
Thank You qhome for this amazing add-on for Zen-Cart and for sticking around to support it!
Have you seen and ZC 2 code yet? Do you have any idea's how long it will take to port this mod to the new version?
Thanks
JOhn ><>
Thanks! I tried that, so maybe I'm making a css error. I added:
.tppHeading (
color: #B5CF8E;
text-align: center;
}
near the top of stylesheet.css but the text is not doing either. See:
http://www.customcreationsunlimited....oducts_id=1173
This is the source from that page...
<div id="sc1" class="tabcontent" style="display:block;">
<div id="ProductDescriptionHeader1" style="display:block;">
<class="tppHeading">Product Details</>
</div>
Thanks for the help.
I cant get this to work.When I set Global Enable Tabs to 1 my products page just displays my site logo and nothing more.
www.csajamaica.com
Please help.I am new to zencart
Hi,
someone have try to put New TAB name Videos take from youtube ?
Hi -
I have one issue & one question - I searched but didn't see anyone else asking either of these:
First the issue - I have enabled TPP to show additional images in a tab but they're not showing up. I have the tab, but what shows up is the add to cart box, which I do not have globally enabled.
You can see here
If you click on the main product image, all the images show (kind of like a nice slideshow actually). But anyway, click the tab for additional images and there's my problem.
Second, I would like to have my Quantity Discount Table in its own tab for products that use it, but without adding in the add to cart quantity box & button. Is that possible?
TIA
I don't understand how in the world you are all using this mod with the IE issue. Either this, or lightbox, or both are causing product pages to abort. Which pretty much boots the visitor out of the site completely to an error page.
You might want to click around in IE to see if this happens to you. It seems to happen a lot when you click the "featured products" in the sidebox.
Perhaps it depends on which lightbox contrib you are using.. I am using Fual Lightbox and have NO issues.. I can provide sample links if you like.. (Cause personally it irks me when folks post "works for me" but post no links to demonstrate this..:smile:)
Thank you for th reply, the fact that you have TPP and a lightbox mod working fine is encouraging. I will remove my lightbox (Zen Lightbox) and install Fual Slimbox.
I uninstalled TPP and reinstalled it, but the same issue exists so hopefully your advice will work. I'll report back.
I reinstalled everything. Installed TPP first, then installed Zen Lightbox. All is well and working now! For anyone who experiences this issue with both mods installed, I guess install Lightbox second, and make sure it is v1.5 as 1.4 issues.
Thanks Diva
Perhaps.. It's hard to pinpoint issues when you have a store with multiple mods. There are a FEW known issues, but unfortunately every store is slightly different.. So you may have to create a test store and install your add-ons one by one until you figure out which mod is creating the problem..
After having run into this issue recently, I now have a test Zen install just for this purpose.. It allows me to troubleshoot mods to figure out why/how they are not working together without touching the store where I'm having the issue..
Good luck.. troubleshooting can be taxing..
Well if you are using OSC, then you KNOW that their mods don't always work together without a hammer and a chisel sometimes.. Zen Cart in comparison is NIGHT & DAY as far as I am concerned.. Most of the add-ons for this app work fairly well together which is more than I can say for most of the OSC add-ons last time I looked at it.. (with the exception of the ones written by Linda McGrath which tells you how long ago that was!:laugh:)
Before you toss the baby with the bath water so to speak why don't you give what I suggest a try.. I know troubleshooting is a real PITA, but it might resolve your issue..
Install a FRESH copy of Zen in a different location.. Copy the Classic Template folder and re-name it with the SAME name as your customple template folder. DO NOT copy your template files in at this point.. Just use the Classic Template files for the moment.. Then install JUST this mod (if this is the one giving you the issue) and see if you can get it to work on a virgin Zen Cart install. Then try adding in Image Handler, and test again that BOTH mods seem to be working together. The add your Lightbox mod to the mix, and text to see that all three mods are working well together.. See at which point things stop working.. If nothing stops working then the next thing you need to factor in is what is going
I JUST did this this past weekend with a site that I was working on.. I had a dev site setup, but the Nifty Corners script would NOT work, and it was causing other mods to stop working correctly.. So I created fresh Zen Cart install and tested until I found the issue.. Then I copied the corrected files back over to the dev site I was working on, and moved on.. Like I said.. It's a PITA, but in the end I am glad I did it..
A hammer & a chisel is right. I have about 30 mods installed on that store (the ones I could actually get to work). It took months.
Good idea on setting up another site. I'll give it a shot, I would like to use this mod.
This is why you can't post when talking to others.. I left out a whole section of my thoughts..:laugh::laugh: see below as I have "finished" my thought..:laugh::laugh: Troubleshooting is a PITA, but give it a shot before you give up.. Besides you don't really wanna go back to OSC, and what's better than Zen Cart??:laugh::laugh:
I installed this without too much headache, and thought it was working fine. But upon review, I'm noticing that the main product description does not show anywhere, regardless of whether the detail text is set in TPP Config to be above or on the description tab.
I'm also suspicious that the Global Review Tab - when disabled in the TPP config - may not be working right. When this is disabled in the tab, should the review info then show up above the tabs?
Any ideas?
Well so far so good. I've installed about 5 mods on top of tpp on my vanilla zc and all is working well. I have a feeling I know which one the culprit is, so I'm going to do that one last. Glad I took your advice. :thumbsup:
The more times I install ZC the better I get at it. I think this is number 5 :rotflmao:
If you mean it's not showing up on the tab, it's not supposed to. It's above the tabs. But you could probably get it in there by playing around with code. In the install instructions there's alot of examples, maybe one of them would work for that.
If it's not showing up on your page at all, then you need to check tpl_product_info_display.php. Maybe you overwrote it when making a change.
Yes, the product description but not the product title as far as I could see in the install instructions.
BTW, I got it working FINALLY with all the original mods & a few more only to have my stylesheet turn into a disaster. I spent more fixing that then installing everything else.
Yes, but why would anyone want just the product title on a tab??:huh:
:clap::clap:Seeeeeeeeeeeeeeeeeeeee... now don't cha feel smart and all..:smartalec:
Been there, done that, on trashing my stylesheet.. But now that it's all over, aren't you glad you stuck it out?? Zen is soooooooo much better than OSC..:bigups:
I dunno, ask DBB1 -- unless I misunderstood her question. That's very possible :lamo:
There's some things about osc that I like better, I think admin is way better. BUT on the customer end of things, zc blows it away. Osc has some stupid defaults that no one seems to be able to get around, or they have gotten around them & don't want to share how they did it. So better for me to have a hassle with some things than the customer. Yeah, so I'm liking my zc store and *knock on wood* I'll be able to start importing my osc db today. (this forum is better than theirs too :yes:)Quote:
Been there, done that, on trashing my stylesheet.. But now that it's all over, aren't you glad you stuck it out?? Zen is soooooooo much better than OSC..:bigups:
Did you use the mod for Osc to Zen?
I certainly appreciate everyone's reply, but somewhere this post seems to have taken a turn (see my original post above, edited to correct my improper terminology - thanks, Charles).
Here are some screen shots of what I'm referring too. The point I was trying to make was that, no matter whether the full product description was on the tabbed page, or above the tabbed pages (accomplished thru TPP Config), the item's title (short description, or whatever you want to call it) does not show up anywhere.
http://www.gadgetfancy.com/gadgetshop/desc1b.JPG
(Please note that I am NOT trying to get the item's title to be on the actual tab; "Product Description" that's on there now suits me fine).
Call me silly, but if a customer is browsing an item, I would think you would want to display the item's title somewhere, in this case "Crystal Radio Kit."
My other question was whether I should expect product reviews to appear above the tabbed pages if I were to turn off the Global Reviews tab. If so, then that is not working for me either.
I can edit tpl_product_info_display.php as was suggested, but I wanted to first correct the original TTP mod, if there is in fact something installed improperly.
Thanks again, everyone!
Ok, I getcha now. Yes, reviews still shows up even if you turn it off in tpp. I deleted the code from tpl_product_listing to get rid of it, I couldn't find any other way.
As far as the other...when I have tabs enable to show product description, my product title (name) shows up above the item price where it does normally. So, yes something is not right.
Do you have
above your "price block" code?Code:<!--bof Product Name-->
<h1 id="productName" class="productGeneral"><?php echo $products_name; ?></h1>
<!--eof Product Name-->
The screeshot is nice, but can you post an actual link so that we can REALLY see what is going on.. Please don't edit any files just yet.. Your issue could be as simple as a CSS issue.. If you have to edit core files to get your product description to show, then something is VERY wrong.. Post your site's link so we can see it please..
There are two mods.. this is the one I used:
http://www.zen-cart.com/index.php?ma...roducts_id=918
I also just noticed that the item's title, model number, and price show up in the browser's title bar. If you're using a browser that supports tabbed browsing, then this info also shows up on the active browser tab. Is this normal behavior?
Note that I recently upgraded to TPP v1.05 from v1.04, but to be honest, I don't recall if this was working then, or not. Could there be something amiss with the MySQL portion that's causing this?
Does anyone know if it would be possible to add an image of a shopping cart inside the "Add to Cart" tab in the Tabbed Product Pro mod?
If you look at a product the new site I'm building, you'll notice that the ADD TO CART tab is not exactly standing out. If I could somehow do this:
http://www.dystynction.com/FASHIONATIONS/screen4.jpg
I'm guessing from the stylesheet that controls the tabs it's impossible to do this as they all use the same .gif file for every tab?
Maybe there's another way to make the shopping cart tab stand out? Does anyone know how?
Thanks in advance :-)
I did, but I was still getting a reviews tab that said "there are no reviews for this product"! So I just got rid of the darn thing altogether.
BTW, I used that mod and imported my osc db! Wow, that is really a great contribution! I just have to input the qty discounts.
[FONT=Arial]Your issue isn't caused by this mod at all, but an incorrect entry in your stylesheet. You've got this in your stylesheet:
This hides ANYTHING inside the H1 tag, not just the category title. I would suggest you try this:Code:/* Centerbox Category Title display */
h1 {
font-size: 1.5em;
color: #9a9a9a;
display: none; /* prevents category title from displaying */
}
[/FONT]Code:h1 {
font-size: 1.5em;
color: #9a9a9a;
}
#productListHeading {
display: none; /* prevents category title from displaying */
}
Yes, tpl_product_info_display.php. If you haven't already done so, try uploading the page without the tpp code (just take out the code in between the tpp comments in the 3 spots, leave the comments so you know where to put it back in). If it still doesn't show up, post on the General forum to see if someone can figure out why.
DBB!'s problem is a stylesheet issue.. (Please see my post above)
FYI, USUALLY the very last thing you ever want to do is hack at core files just to make style changes.. For most of these issues it's USUALLY a stylesheet resolution that is at the heart of the problem..
I suggest getting the Firefox Web developer tools.. Very useful, and it's how I found out the answer..
wonderful addon...is it possible to get the Products URL (For more information, please visit this product's webpage.) in the details tab?
I kinda figured the issue was that's how things work in the OSC world.. That's why this is called ZEN Cart.. So have some tea (or coffee, wine, beer.. whatever mellows you) and relax my friend.. :laugh:
In my experience with Zen Cart, I have found very few style or layout changes that requires ripping apart core files to achieve.. Now that said, I have run into a few layout changes that required some core file changes, but they are the exception truly and not the rule..
Bada-Bing! Thank you, DivaVocals!
I, too use Firefox Web tools, but without knowing the tag naming conventions, it's can be next to impossible to find what you're looking for. And #productListHeading was not used in the sheet at all - how would I have known that, for example? I've been trying to comment things as I find them, but is there a master listing somewhere that describes all the possible classes and tags?
By the way, if I turn off the TPP Global Reviews, should reviews then show up above the tabbed pages, or would that be a tweak?
Anyway, thank you so much - you've earned your Diva status!
DBB1
There are MANY styles in the code that are not in the stylesheet. You add them as you need them.. I believe in the FAQs or even the stylesheet forum there is a list of all possible styles.. other wise you have to use the Firefox tools to look..
Turning off the reviews in the admin should remove the reviews..
Awwww shuckins.. I didn't do anything special..:blush: A view source of your product page revealed the ID in question, and on a hunch I took a quick look at your stylesheet because I suspected you had hidden the H1 tag, and bada bing bada boom:smartalec:.
I have not been able to find an answer to my problem. If there is and anybody knows, first I apologize and second please direct me to it.
My problem is that I have Tabbed Products Pro installed and Average Product Rating installed as well. If the Tabbed Products Pro is enabled the Average Product Rating information will not show.
As you all know, the top portion of the code for Tabbed Products is
If I place the code for Average Product Rating (shown below) above the Tabbed Products code, the contributions work. I would like for the code to remain where is supposed to, almost at the bottom of tpl_product_info_display.phpPHP Code:
<?php
//BOF :: Tabbed Products Pro ::
require(DIR_WS_MODULES . 'tabbed_products_pro.php');
//EOF :: Tabbed Products Pro ::
?>
PHP Code:
<?php
echo '<p class="reviewCount">';
if ($flag_show_product_info_reviews_count == 1) {
echo TEXT_CURRENT_REVIEWS . ' <strong>' . $reviews->fields['count'] . '</strong><br />';
$stars_image_suffix = str_replace('.', '_', zen_round($reviews_average_rating->fields['average_rating'] * 2, 0) / 2); // for stars_0_5.gif, stars_1.gif, stars_1_5.gif etc.
$average_rating = zen_round($reviews_average_rating->fields['average_rating'], 2);
echo TEXT_CURRENT_REVIEWS_RATING . ' <strong>' . $average_rating . '</strong> ' . zen_image(DIR_WS_TEMPLATE_IMAGES . 'stars_' . $stars_image_suffix . '.gif', sprintf(BOX_REVIEWS_TEXT_OF_5_STARS, $average_rating));
} else {
echo '';
}
echo '</p>';
?>
Thanks for any help.
I installed this mod but nothing is showing up. I have global set to ON and entered the <--%Product Description%--> and one other tag to the PRoduct Description area, but no tabs are showing up.
UPDATE: Tabs show if I replace my modified product_info_display with the one provided. But my product_info_display is heavily modded...additional images positioned below main image, all buttons on same line, low to no stock notification, possibly more that i don't remember off the top of my head... My page is pasted it below:
Quote:
<?php
/**
* Page Template
*
* Loaded automatically by index.php?main_page=product_info.<br />
* Displays details of a typical product
*
* @package templateSystem
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_product_info_display.php 5369 2006-12-23 10:55:52Z drbyte $
*/
//require(DIR_WS_MODULES . '/debug_blocks/product_info_prices.php');
?>
<?php
//BOF :: Tabbed Products Pro ::
require(DIR_WS_MODULES . 'tabbed_products_pro.php');
//EOF :: Tabbed Products Pro ::
?>
<div class="centerColumn" id="productGeneral">
<!--bof Form start-->
<?php echo zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($_GET['products_id']), zen_get_all_get_params(array('action')) . 'action=add_product'), 'post', 'enctype="multipart/form-data"') . "\n"; ?>
<!--eof Form start-->
<?php if ($messageStack->size('product_info') > 0) echo $messageStack->output('product_info'); ?>
<!--bof Category Icon -->
<?php if ($module_show_categories != 0) {?>
<?php
/**
* display the category icons
*/
require($template->get_template_dir('/tpl_modules_category_icon_display.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_icon_display.php'); ?>
<?php } ?>
<!--eof Category Icon -->
<!--bof Prev/Next top position -->
<?php if (PRODUCT_INFO_PREVIOUS_NEXT == 1 or PRODUCT_INFO_PREVIOUS_NEXT == 3) { ?>
<?php
/**
* display the product previous/next helper
*/
require($template->get_template_dir('/tpl_products_next_previous.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_products_next_previous.php'); ?>
<?php } ?>
<!--eof Prev/Next top position-->
<!-- beginning of additional images modification -->
<div id="productImagesWrapper">
<!--bof Main Product Image -->
<?php
if (zen_not_null($products_image)) {
?>
<?php
/**
* display the main product image
*/
require($template->get_template_dir('/tpl_modules_main_product_image.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_main_product_image.php'); ?>
<?php
}
?>
<!--eof Main Product Image-->
<br class="clearBoth" />
<!--bof Additional Product Images -->
<?php
/**
* display the products additional images
*/
require($template->get_template_dir('/tpl_modules_additional_images.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_additional_images.php'); ?>
<!--eof Additional Product Images -->
</div>
<!-- end of additional images modification -->
<!--bof Product Name-->
<h1 id="productName" class="productGeneral"><?php echo $products_name; ?></h1>
<!--eof Product Name-->
<!--bof Product Price block -->
<h2 id="productPrices" class="productGeneral">
<?php
// base price
if ($show_onetime_charges_description == 'true') {
$one_time = '<span >' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br />';
} else {
$one_time = '';
}
echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int)$_GET['products_id']);
?></h2>
<!--eof Product Price block -->
<!--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="modelNumberBox li">
<?php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li>' . TEXT_PRODUCT_MANUFACTURER . $manufacturers_name . '</li>' : '') . "\n"; ?>
<?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"; ?>
</ul>
<?php
}
?>
<!--eof Product details list -->
<!--bof free ship icon -->
<?php if(zen_get_product_is_always_free_shipping($products_id_current) && $flag_show_product_info_free_shipping) { ?>
<div id="freeShippingIcon"><?php echo TEXT_PRODUCT_FREE_SHIPPING_ICON; ?></div>
<?php } ?>
<!--eof free ship icon -->
<?php
//BOF :: Tabbed Products Pro ::
//echo '<div id="tpptabBlock" style="display:none;">' . $tabData . '</div>';
//EOF :: Tabbed Products Pro ::
?>
<!--bof Product description -->
<?php if ($products_description != '') { ?>
<div id="productDescription" class="productGeneral biggerText"><?php echo stripslashes($products_description); ?>
<?php } ?>
</div>
<br /><br /><br /><br />
<!--bof low to no stock -->
<?php
if($products_quantity <= 3){
if($products_quantity > 0){
echo "<div class='lowStock'>ONLY ".$products_quantity." LEFT!</div><br>";
}else{
echo "<div class='lowStock'>OUT OF STOCK</div><br>";
}
}
?>
<!--eof low to no stock -->
<!--bof Attributes Module -->
<?php
if ($pr_attr->fields['total'] > 0) {
?>
<?php
/**
* display the product atributes
*/
require($template->get_template_dir('/tpl_modules_attributes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributes.php'); ?>
<?php
}
?>
<!--eof Attributes Module -->
<!--bof help links -->
<div id="productHelp">
<a href=" <?php echo zen_href_link(FILENAME_SIZE_CHART); ?> " class="helpMe" >Help with sizes?</a><a href=" <?php echo zen_href_link(FILENAME_RETURN_POLICY); ?> " class="helpMe" >Return Policy?</a>
</div>
<!-- eof help links -->
<!--eof Product description -->
<br class="clearBoth" />
<!--bof Quantity Discounts table -->
<?php
if ($products_discount_type != 0) { ?>
<?php
/**
* display the products quantity discount
*/
require($template->get_template_dir('/tpl_modules_products_quantity_discounts.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_products_quantity_discounts.php'); ?>
<?php
}
?>
<!--eof Quantity Discounts table -->
<br class="clearBoth" />
<!--bof Prev/Next bottom position -->
<?php if (PRODUCT_INFO_PREVIOUS_NEXT == 2 or PRODUCT_INFO_PREVIOUS_NEXT == 3) { ?>
<?php
/**
* display the product previous/next helper
*/
require($template->get_template_dir('/tpl_products_next_previous.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_products_next_previous.php'); ?>
<?php } ?>
<!--eof Prev/Next bottom position -->
<div id="buttonWrapper">
<!--bof Add to Cart Box -->
<?php
if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
// do nothing
} else {
?>
<?php
$display_qty = (($flag_show_product_info_in_cart_qty == 1 and $_SESSION['cart']->in_cart($_GET['products_id'])) ? '<p>' . PRODUCTS_ORDER_QTY_TEXT_IN_CART . $_SESSION['cart']->get_quantity($_GET['products_id']) . '</p>' : '');
if ($products_qty_box_status == 0 or $products_quantity_order_max== 1) {
// hide the quantity box and default to 1
$the_button = '<input type="hidden" name="cart_quantity" value="1" />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
} else {
// show the quantity box
$the_button = PRODUCTS_ORDER_QTY_TEXT . '<br /> <input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="2" size="2" /><br />' . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '<br />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
}
$display_button = zen_get_buy_now_button($_GET['products_id'], $the_button);
?>
<?php if ($display_qty != '' or $display_button != '') { ?>
<div id="cartAdd">
<?php
echo $display_qty;
echo $display_button;
?>
</div>
<?php } // display qty and button ?>
<?php } // CUSTOMERS_APPROVAL == 3 ?>
<!--eof Add to Cart Box-->
<!--bof Tell a Friend button -->
<?php
if ($flag_show_product_info_tell_a_friend == 1) { ?>
<div id="productTellFriendLink" class="buttonRow forward"><?php echo ($flag_show_product_info_tell_a_friend == 1 ? '<a href="' . zen_href_link(FILENAME_TELL_A_FRIEND, 'products_id=' . $_GET['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_TELLAFRIEND, BUTTON_TELLAFRIEND_ALT) . '</a>' : ''); ?></div>
<?php
}
?>
<!--eof Tell a Friend button -->
<!--bof Reviews button and count-->
<?php
if ($flag_show_product_info_reviews == 1) {
// if more than 0 reviews, then show reviews button; otherwise, show the "write review" button
if ($reviews->fields['count'] > 0 ) { ?>
<div id="productReviewLink" class="buttonRow back"><?php echo '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS, zen_get_all_get_params()) . '">' . zen_image_button(BUTTON_IMAGE_REVIEWS, BUTTON_REVIEWS_ALT) . '</a>'; ?></div>
<br class="clearBoth" />
<p class="reviewCount"><?php echo ($flag_show_product_info_reviews_count == 1 ? TEXT_CURRENT_REVIEWS . ' ' . $reviews->fields['count'] : ''); ?></p>
<?php } else { ?>
<div id="productReviewLink" class="buttonRow back"><?php echo '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, zen_get_all_get_params(array())) . '">' . zen_image_button(BUTTON_IMAGE_WRITE_REVIEW, BUTTON_WRITE_REVIEW_ALT) . '</a>'; ?></div>
<br class="clearBoth" />
<?php
}
}
?>
<!--eof Reviews button and count -->
</div>
<br class="clearBoth" />
<!--bof Product date added/available-->
<?php
if ($products_date_available > date('Y-m-d H:i:s')) {
if ($flag_show_product_info_date_available == 1) {
?>
<p id="productDateAvailable" class="productGeneral centeredContent"><?php echo sprintf(TEXT_DATE_AVAILABLE, zen_date_long($products_date_available)); ?></p>
<?php
}
} else {
if ($flag_show_product_info_date_added == 1) {
?>
<p id="productDateAdded" class="productGeneral centeredContent"><?php echo sprintf(TEXT_DATE_ADDED, zen_date_long($products_date_added)); ?></p>
<?php
} // $flag_show_product_info_date_added
}
?>
<!--eof Product date added/available -->
<!--bof Product URL -->
<?php
if (zen_not_null($products_url)) {
if ($flag_show_product_info_url == 1) {
?>
<p id="productInfoLink" class="productGeneral centeredContent"><?php echo sprintf(TEXT_MORE_INFORMATION, zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($products_url), 'NONSSL', true, false)); ?></p>
<?php
} // $flag_show_product_info_url
}
?>
<!--eof Product URL -->
<!--bof also purchased products module-->
<?php require($template->get_template_dir('tpl_modules_also_purchased_products.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_also_purchased_products.php');?>
<!--eof also purchased products module-->
<!--bof Form close-->
</form>
<!--bof Form close-->
</div>
<?php
//BOF :: Tabbed Products Pro ::
echo $tabjscript;
//BOF :: Tabbed Products Pro ::
?>
Alright it magically started showing, however I have two problems
1) I need to change the order of the tags so that PRoduct Description comes before my custom tag (Composition & Fit) and the Details tab..
2) I would like the product name, and price to be in the Product Description tag.
Any help would be awesome. This mod is great!
Another problem I have come across....I can't get te product attributes and buttons to move up on the Product Page. The tpptabBlock looks to be preventing it. I changed the height of the tpptabBlock, but the minute I do, it messes up the tab strip and no longer displays the tabs horizontally. Help with this would be appreciated as I am trying to relaunch asap.
Product Description should be the first tab by default.
You can do that with the "Main Image on Tab" however that will also put the image on the first tab too. If you want just the price and title, with no image, you will have to shift things around in the includes/modules/tabbed_products_pro.php fileQuote:
2) I would like the product name, and price to be in the Product Description tag.
Would be easier if you had a link or at least a screenshot of what you want
Oh hey qhome, I asked this a few weeks ago but I don't think you've been on. Is it possible for me to have the quantity discount table in it's own tab without including the Add to Cart button?
My bad. I had the css as 'float: right;'...I forgot that actually switches the order of li elements.
Dang. I'll take a look but I'm not much good at php...Quote:
You can do that with the "Main Image on Tab" however that will also put the image on the first tab too. If you want just the price and title, with no image, you will have to shift things around in the includes/modules/tabbed_products_pro.php file
The site has been in mainenance mode, hence why I did not provide a link. It's back up now and you can see it HEREQuote:
Would be easier if you had a link or at least a screenshot of what you want
Thanks for your help!:clap:
I've been using Tabbed Products since the lite version (now have TPP installed) and just want to say a quick thank you to qhome before I get to my question so ... THANKS!
Now, I did search through both this thread and the previous one for lite and didn't find anything pertaining to what I'm wanting to do. I have a fairly long list of fragrance descriptions that I've created an EZPAGE for and I'm wondering if it is possible to have a tab that will pull in the contents of that EZPAGE? My list changes frequently so I'm trying to come up with a way that will allow me to only have to edit 1 page instead of every single product that I need to have the fragrance descriptions on.
Any insight would be greatly appreciated.
I have been unsuccessfully trying to get my extra database fields to display on the Details tab. I can get them to display anywhere else on the page but not in the tabs.
CHeerz for any help....Code:<?php echo TEXT_PRODUCT_HEIGHT; ?><?php echo $product_info->fields['products_height']; ?><?php echo TEXT_PRODUCT_MM; ?><br>
<?php echo TEXT_PRODUCT_WIDTH; ?><?php echo $product_info->fields['products_width']; ?><?php echo TEXT_PRODUCT_MM; ?><br>
<?php echo TEXT_PRODUCT_DEPTH; ?><?php echo $product_info->fields['products_depth']; ?><?php echo TEXT_PRODUCT_MM; ?><br>
Great mod by the way.