Re: All Business template Support Thread
Hi
I am trying to add a few things to the all business template to do with the way products are displayed. Our company bulk sells products and we want to show our products in the pack size like this
12 x Panasonic AA batteries 4 batteries per card £0.46 each
I found it easy enough to create everything up to the each part but get a problem when creating sale items as it looks like this
12 x Panasonic AA batteries 4 batteries per card (£0.46) £0.40
Save: 13% off each
Can someone help me get this in the right place and tell me how to go about adding the total price. i was thinking
$sum_total = $products_quantity_order_min * $price;
print ($sum_total);
This is what i have in my tpl_product_info_display so far
<!--bof Product Name-->
<h1 id="productName" class="productGeneral"> <?php echo $products_quantity_order_min; ?> <?php echo x ?> <?php echo $products_name; ?> <?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']);
?>
<!--bof testing each and whole price-->
<?php echo 'each'; ?>
<?php
$sum_total = $products_quantity_order_min * $price;
print ($sum_total);
?>
</h1>
<?php echo $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>' : ''); X ?>
<!--eof Product Name-->
Re: All Business template Support Thread
Quote:
Hi
I am trying to add a few things to the all business template to do with the way products are displayed. Our company bulk sells products and we want to show our products in the pack size like this
12 x Panasonic AA batteries 4 batteries per card £0.46 each
I found it easy enough to create everything up to the each part but get a problem when creating sale items as it looks like this
12 x Panasonic AA batteries 4 batteries per card (£0.46) £0.40
Save: 13% off each
Can someone help me get this in the right place and tell me how to go about adding the total price. i was thinking
$sum_total = $products_quantity_order_min * $price;
print ($sum_total);
This is what i have in my tpl_product_info_display so far
<!--bof Product Name-->
<h1 id="productName" class="productGeneral"> <?php echo $products_quantity_order_min; ?> <?php echo x ?> <?php echo $products_name; ?> <?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']);
?>
<!--bof testing each and whole price-->
<?php echo 'each'; ?>
<?php
$sum_total = $products_quantity_order_min * $price;
print ($sum_total);
?>
</h1>
<?php echo $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>' : ''); X ?>
<!--eof Product Name-->
Post a link to your site so that I can take a look.
Re: All Business template Support Thread
Hi again everyone,
I know I read about a missing file for the About Us page, but I didn't understand the directions for how to fix it - given that I know nothing about creating such files can you help? Thanks!
Also, is there something I can do to make the links for the slider images and the twitter/facebook links open a new page?
Thanks again for the awesome template!
~Jewel
Re: All Business template Support Thread
Quote:
Originally Posted by
picaflor-azul
You are using an old version of the template package. Remove:
Code:
#productAttributes {float:left;margin-left:-350px;margin-top:70px;}
from both the includes/templates/all_business/css/ie7.css and includes/templates/all_business/css/ie6.css.
Thanks,
Anne
thank you
Re: All Business template Support Thread
Thank you for your response i am trying to add it to all pages
What i would like to do is display products names like this
12 x Panasonic AA batteries 4 batteries per card £0.46 each £5.52
i have got the first bit (12x) by using the the min order quantity which i am happy with (however my code can prob be cleaned up) but as mentioned previously i am having trouble with displaying 'each' when the item is on special and the total price.
the domain i am testing on is www.topwholesale.co.uk
Re: All Business template Support Thread
Also does anyone know of a way which the item add to cart quantity box is auto filled with the quantity the customer is required to buy them in.
Basically instead of 1 would be 6 or 12 or whatever is put in the units box, or maybe even a tooltip just something a bit more obvious for our customers as some of them aren't that bright.
Re: All Business template Support Thread
Quote:
Originally Posted by
mx-signs
also does anyone know of a way which the item add to cart quantity box is auto filled with the quantity the customer is required to buy them in.
Basically instead of 1 would be 6 or 12 or whatever is put in the units box, or maybe even a tooltip just something a bit more obvious for our customers as some of them aren't that bright.
sorry ignore this it already does it
(i'm new to zen cart!)
Re: All Business template Support Thread
Quote:
Originally Posted by
picaflor-azul
Instead of manipulating the css to move things around on this page (this has the potential to cause cross browser problems), I would recommend editing the tpl_product_info_display.php file.
Thanks,
Anne
Hi Anne,
I did the above and it seemed to resolve my initial issue. However, I'm now running into other issues with Tell a Friend and Reviews. I've reexamined the tpl_product_info_display.php file and both of these items are located at the end of the document. I'm hesitant to tweak my css because it may affect all of my other products. Here is the page specific I'm having issues with
http://bodiefoundation.org/zencart/i...products_id=48
Both Firefox and IE. Thanks, Lynn
Re: All Business template Support Thread
Quote:
I'm hesitant to tweak my css because it may affect all of my other products. Here is the page specific I'm having issues with
This is the reason for editing the tpl_product_info_page.php. After you make any changes you will need to re-do cross browser testing to see that the layout is still o.k. in all browsers.
Thanks,
Anne
Re: All Business template Support Thread
I'm sorry Anne did I miss something?
I just added a new product with attributes and ran into this problem. Prior to this (approximately a week ago) the fix to the tpl problem worked. It's not working now. Please see the page I referred you to. How do I fix this?
Much much appreciated, Lynn