Forums / All Other Contributions/Addons / Tabbed Products ''LITE'' version - Delimiter based

Tabbed Products ''LITE'' version - Delimiter based

Locked

Views: 234,294

Results 481 to 500 of 1,190
This thread is locked. New replies are disabled.
31 Aug 2006, 3:58 PM
#482
davin avatar

davin

New Zenner

Join Date:
Jan 2004
Posts:
23
Plugin Contributions:
1

Re: Tabbed Products ''LITE'' version - Delimiter based

Problems with the current download? I get an error when I try to decompress the current version ZIP.

31 Aug 2006, 5:44 PM
#483
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Re: Tabbed Products ''LITE'' version - Delimiter based

Remzi:

Qhome,
I installed your wonderfull ''Tabbed Products'' . My site is now more more customer oriented, better said: Sell oriented! Tab Names are coming from tpl_product_info_display.php directly.

//########### TAB NAMES #############
$addtocart_tab_name = 'Add to Cart'; // if using this tab, set the tab title for the Add To Cart Tab
$add_images_tab_name = 'Additional Images'; // if using this tab, set the tab title for the Additional Images Tab
$cust_also_purchased_tab_name = 'Customers Also Purchased'; // if using this tab, set the tab title for the Cust Also Purchased Tab
$cross_sell_tab_name = 'We Also Recommend'<?php echo TEXT_CROSS_SELL_TAB_NAME; *>// if using this tab, set the tab title for the CrossSell Tab
//########################################
Question is:

My Site is running in **TWO **Languages. Tab Name 'We also Recommend '' appears in both languages in English. Where can I translate this tab name for the second language. Is there any possibility. Can you help me pls. Thanks in advance.

Well you added it in $cross_sell_tab_name = 'We Also Recommend'<?php echo TEXT_CROSS_SELL_TAB_NAME; *>// if using this tab, set the tab title for the CrossSell Tab

but you never took out the hard text. That should just be

$cross_sell_tab_name = TEXT_CROSS_SELL_TAB_NAME;

Is that what you mean? I guess I never thought about it with multiple languages. I should really make a language file for it.

31 Aug 2006, 5:54 PM
#484
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Re: Tabbed Products ''LITE'' version - Delimiter based

Davin:

Problems with the current download? I get an error when I try to decompress the current version ZIP.

I just tested the one in the downloads section found here: http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_53&products_id=146

Seems to work fine. Try re-downloading it.

=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==

atsdotha:

thats exactly what I'm looking for...now, how did you do it? :)

It was pretty simple, just added some <table> tags to make the main image and details appear in the left <td> and the tabs on the right <td>. Then I moved the Product Name up top so it was in the middle over the whole thing.

I've attached the custom version for you.

31 Aug 2006, 7:01 PM
#485
stephen avatar

stephen

New Zenner

Join Date:
Jul 2006
Posts:
12
Plugin Contributions:
0

Re: Tabbed Products ''LITE'' version - Delimiter based

Hello, is there some way to integrate Ask a question into a tab, either as a link to that mod, or ideally as the form itself?
Currently the two mods seem to work together well, with the ask a question text displaying just to the right of the product image, under price and weight info.
Also, other forms, like product review or tell a friend, could function well inside their own Tabs.

BTW, both Tablite and Ask A question modify the same file: tpl_product_info_display.php.
[A note to newbies, like myself!]

31 Aug 2006, 9:38 PM
#486
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

Re: Tabbed Products ''LITE'' version - Delimiter based

qhome:

I just tested the one in the downloads section found here: http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_53&products_id=146

Seems to work fine. Try re-downloading it.

=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==

It was pretty simple, just added some <table> tags to make the main image and details appear in the left <td> and the tabs on the right <td>. Then I moved the Product Name up top so it was in the middle over the whole thing.

I've attached the custom version for you.

Qhome! Excellent work on this mod. I am resurrecting my old question which do you plan to support product type (at least music product type). I like this mod but I have so many products that are music type (about 5,000 titles) and I was going to put the track listing on a separate tab.

For example if you look at this page: http://www.clevershoppers.com/index.php?main_page=product_music_info&products_id=467 I'd like to put the description on the description tab and then the track listing on a separate tab.

Any ideas?

Thanks!

1 Sep 2006, 4:34 AM
#487
remzi avatar

remzi

New Zenner

Join Date:
Aug 2006
Location:
Istanbul
Posts:
31
Plugin Contributions:
0

Re: Tabbed Products ''LITE'' version - Delimiter based

qhome:

Well you added it in $cross_sell_tab_name = 'We Also Recommend'<?php echo TEXT_CROSS_SELL_TAB_NAME; *>// if using this tab, set the tab title for the CrossSell Tab

but you never took out the hard text. That should just be

$cross_sell_tab_name = TEXT_CROSS_SELL_TAB_NAME;

Is that what you mean? I guess I never thought about it with multiple languages. I should really make a language file for it.


Exactly . This wiill be great if you can help me. If I change $cross_sell_tab_name = 'We Also Recommend' with ---- $cross_sell_tab_name = TEXT_CROSS_SELL_TAB_NAME--- where can put the translation for the hard text TAB NAMES ? Thanks. Remzi

2 Sep 2006, 7:41 AM
#488
ericpeng avatar

ericpeng

Zen Follower

Join Date:
Jan 2006
Posts:
115
Plugin Contributions:
0

Re: Tabbed Products ''LITE'' version - Delimiter based

qhome:

AHH i see your problem now.

<link rel="stylesheet" type="text/css" href="includes/templates/ilync/css/stylesheet_tablitev2.css" /> <link rel="stylesheet" type="text/css" href="includes/templates/ilync/css/stylesheet_tablitev3_silver.css" /> <link rel="stylesheet" type="text/css" href="includes/templates/ilync/css/stylesheet_tablitev3_xpstyle.css" /> <script type="text/javascript" src="includes/templates/ilync/jscript/jscript_tablitev2.js"></script> <script type="text/javascript" src="includes/templates/ilync/jscript/jscript_tablitev3.js"></script> ``` > > 1. You need to delete the version2 stylesheet and javascript. > > 2. You should only have one of the v3 stylesheets in the css folder at a time. In the latest version I've been putting them inside a subfolder called "more stylesheets" so if you want the XP style, remove the silver one, and vice versa. <link rel="stylesheet" type="text/css" href="includes/templates/ilync/css/stylesheet.css" /> <link rel="stylesheet" type="text/css" href="includes/templates/ilync/css/stylesheet_categories_menu.css" /> <link rel="stylesheet" type="text/css" href="includes/templates/ilync/css/stylesheet_tablitev3_silver.css" /> <script type="text/javascript" src="includes/templates/ilync/jscript/jscript_tablitev3.js"></script>

I removed all v2. same problem.

Eric

2 Sep 2006, 12:18 PM
#489
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Re: Tabbed Products ''LITE'' version - Delimiter based

ericpeng:

<link rel="stylesheet" type="text/css" href="includes/templates/ilync/css/stylesheet.css" /> <link rel="stylesheet" type="text/css" href="includes/templates/ilync/css/stylesheet_categories_menu.css" /> <link rel="stylesheet" type="text/css" href="includes/templates/ilync/css/stylesheet_tablitev3_silver.css" /> <script type="text/javascript" src="includes/templates/ilync/jscript/jscript_tablitev3.js"></script>

I removed all v2. same problem.

Eric

check your pm

3 Sep 2006, 12:59 AM
#490
stephen avatar

stephen

New Zenner

Join Date:
Jul 2006
Posts:
12
Plugin Contributions:
0

Re: Tabbed Products ''LITE'' version - Delimiter based

Is it possible to have 'Add to Cart' next to the product info, above the Tabs?
I have set the global to keep 'Add to Cart' out of the Tabs, but would like it above rather than below the Tabs.

4 Sep 2006, 7:53 PM
#491
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Re: Tabbed Products ''LITE'' version - Delimiter based

Stephen:

Is it possible to have 'Add to Cart' next to the product info, above the Tabs?
I have set the global to keep 'Add to Cart' out of the Tabs, but would like it above rather than below the Tabs.

You could do it the normal way you would edit the normal zc template.

On version 3.3 of Tabs Lite....

  1. Find and CUT line 623 - 677:
// #-- Start AddToCart Tab Check --#
if ($bAddToCart === false) {
  ?>
  <!-- Added Table to prevent Add to Cart button from floating off the div-->
  <table border="0" width="100%"><tr><td colspan="2">
                  
  <!--bof Attributes Module -->
  <?php
  if ($pr_attr->fields['total'] > 0) {
    // display the product atributes
    require($template->get_template_dir('/tpl_modules_attributes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributes.php');
  }
  ?>
  <!--eof Attributes Module -->
  </td></tr><tr><td valign="bottom">
  <!--bof Quantity Discounts table -->
  <?php
  if ($products_discount_type != 0) {
    // 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');
  }
  ?>
  <!--eof Quantity Discounts table -->
  <br />
  </td><td valign="bottom">
  <!--bof Add to Cart Box -->
  <?php
  if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
    // do nothing
  } else {
    $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 . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" /><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);
    if ($display_qty != '' or $display_button != '') { ?>
      <div id="cartAdd">
      <?php
      echo $display_qty;
      echo $display_button;
      ?>
      </div>
      <?php 
    } // display qty and button
  } // CUSTOMERS_APPROVAL == 3 ?>
  <!--eof Add to Cart Box-->
  </td></tr></table>
  
<?php
} // @-- End AddToCart Tab Check --@
?>
  1. Add <?php at line 153.

  2. Pasted what you CUT above at 154, right under that <?php tag you added.

Now set Main image and Add to cart off the tabs and the add to cart stuff should be above the tabs

Ive attached the version I used to test this with:

5 Sep 2006, 9:48 PM
#494
stephen avatar

stephen

New Zenner

Join Date:
Jul 2006
Posts:
12
Plugin Contributions:
0

Re: Tabbed Products ''LITE'' version - Delimiter based

qhome:

You could do it the normal way you would edit the normal zc template.

On version 3.3 of Tabs Lite....

  1. Find and CUT line 623 - 677:
> 
> 2. Add <?php at line 153.
> 
> 3. Pasted what you CUT above at 154, right under that <?php tag you added.
> 
> Now set Main image and Add to cart off the tabs and the add to cart stuff should be above the tabs
> 
> Ive attached the version I used to test this with:

Thank you very much, it works, I just merged the file you provided, and the Add to Cart is up above the Tabs!

Now I am  trying to move "Ask a Question" mod to below the Tabs, next to 'Write a Review"
I guess that I should search for 'Write A Review' and paste the 'Ask A Question' call next to it?
Learning on the fly!

Here is the Ask a Question call:
      <br />
      <br />
      <span id="productQuestions" class="biggerText">
      <br />
      <b><?php echo '<a href="' . zen_href_link(FILENAME_ASK_A_QUESTION, 'products_id=' . $_GET['products_id']) . '">' . ASK_A_QUESTION . '</a>'; ?></b>
      </span>
      <br class="clearBoth" />
5 Sep 2006, 10:09 PM
#495
stephen avatar

stephen

New Zenner

Join Date:
Jul 2006
Posts:
12
Plugin Contributions:
0

Re: Tabbed Products ''LITE'' version - Delimiter based

Has anyone added other mods to a Tablite tab?

For instance Write/Read A Review, Ask A Question, Tell a Friend.
I can see these mods' forms filled out within a Tab, so that the customer never leaves the product page, until they are ready to Add to Cart or move on.

I have read the Add your own Tab crosstab example, but I am not php dexterous enough without some help.

5 Sep 2006, 11:15 PM
#496
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Re: Tabbed Products ''LITE'' version - Delimiter based

Stephen:

Has anyone added other mods to a Tablite tab?

For instance Write/Read A Review, Ask A Question, Tell a Friend.
I can see these mods' forms filled out within a Tab, so that the customer never leaves the product page, until they are ready to Add to Cart or move on.

I have read the Add your own Tab crosstab example, but I am not php dexterous enough without some help.

Yea those are planned to be in the next release of this contrib. I am trying to do it with ajax, however there may be some paradoxial snafu's with doing it like that.

6 Sep 2006, 8:14 PM
#497
michaelhl avatar

michaelhl

New Zenner

Join Date:
Oct 2005
Location:
Germany
Posts:
60
Plugin Contributions:
0

Re: Tabbed Products ''LITE'' version - Delimiter based

Hi,
I think it is a great contribution and it works well on 1.3.5..

But I miss the language files for the Hardcode-Tabs. They are only in english, I need two languages and so I can't use the the Hardcode-Tabs and must enter them in the productdescription. English is only the second language I use, main language is german.
Is it possible to switch the language like the shop do?

Michael

7 Sep 2006, 2:50 AM
#498
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Re: Tabbed Products ''LITE'' version - Delimiter based

michaelhl:

Hi,
I think it is a great contribution and it works well on 1.3.5..

But I miss the language files for the Hardcode-Tabs. They are only in english, I need two languages and so I can't use the the Hardcode-Tabs and must enter them in the productdescription. English is only the second language I use, main language is german.
Is it possible to switch the language like the shop do?

Michael

Yes that will be in the next version.

7 Sep 2006, 1:52 PM
#499
remzi avatar

remzi

New Zenner

Join Date:
Aug 2006
Location:
Istanbul
Posts:
31
Plugin Contributions:
0

Re: Tabbed Products ''LITE'' version - Delimiter based

As I mentioned before , I have the same problem with two languages for the Hardcore-Tabs. I'm waiting also for the next version.
:lookaroun :lookaroun

7 Sep 2006, 5:22 PM
#500
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

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!