Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / How can I alter the look of the product listing page?

How can I alter the look of the product listing page?

Locked

Started by airsoftoutfitter on 13 Aug 2010, 7:05 PM · Views: 2,121

Results 21 to 36 of 36
This thread is locked. New replies are disabled.
16 Aug 2010, 7:37 AM
#21
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #21 by kobra

I added that #rightBox code but nothing happend
It is not present on your site
Download the file and look for yourself

Zen-Venom Get Bitten

16 Aug 2010, 5:21 PM
#22
airsoftoutfitter avatar

airsoftoutfitter

Zen Follower

Join Date:
Dec 2009
Posts:
244
Plugin Contributions:
0

Post #22 by airsoftoutfitter

kobra:

It is not present on your site
Download the file and look for yourself

It is not present, because I removed it after seeing no change. I will add it again, and wait until you look at it. Let me know your thoughts.

16 Aug 2010, 5:35 PM
#23
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #23 by kobra

I will add it again, and wait until you look at it. Let me know your thoughts.
I use FireFox and see a difference
What browser & version are you using?

Zen-Venom Get Bitten

16 Aug 2010, 5:38 PM
#24
airsoftoutfitter avatar

airsoftoutfitter

Zen Follower

Join Date:
Dec 2009
Posts:
244
Plugin Contributions:
0

Post #24 by airsoftoutfitter

kobra:

I use FireFox and see a difference
What browser & version are you using?

Firefox as well, newest version. If I take out that code, it doesn't change anything though. It looked like this before... Any easy way to move the price into the add to cart box? or just aboe it? and change the color to red? I would also like to have "Our Price" follow before the price itself?

16 Aug 2010, 6:24 PM
#25
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #25 by kobra

If I take out that code, it doesn't change anything though. It looked like this before...
You do not see this difference????

Before:

After:

Zen-Venom Get Bitten

16 Aug 2010, 6:34 PM
#26
airsoftoutfitter avatar

airsoftoutfitter

Zen Follower

Join Date:
Dec 2009
Posts:
244
Plugin Contributions:
0

Post #26 by airsoftoutfitter

kobra:

You do not see this difference????

Before:

After:

Look at the site now, it looks the same, and there is no "#rightbox" in my CSS take a look, it is still the same.

I removed a <br class=<clearBoth" /> from the attribute module and brought the spacing between the "add to cart" and "attribute dropdown" closer together which is what I wanted. I think we were going off of two different things. Sorry for that.

Can you help me get the Price to be RED while leaving the color of the "Our Price" Black? I moved it to the right, but want to get it into the "add to Cart Box" is this easily doable?

16 Aug 2010, 6:41 PM
#27
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #27 by kobra

Look at the site now, it looks the same, and there is no "#rightbox" in my CSS take a look, it is still the same.
NO it is not the same!!!!
It is exactly different as the before and after images depict
That is what I see

Did you look at the images I posted??

Zen-Venom Get Bitten

16 Aug 2010, 6:47 PM
#28
airsoftoutfitter avatar

airsoftoutfitter

Zen Follower

Join Date:
Dec 2009
Posts:
244
Plugin Contributions:
0

Post #28 by airsoftoutfitter

kobra:

NO it is not the same!!!!
It is exactly different as the before and after images depict
That is what I see

Did you look at the images I posted??

I looked at your photos, and yes that large spaced area is different but it doesn't appear to be corrected by the #rightBox in the CSS. That is what I was saying.

16 Aug 2010, 6:51 PM
#29
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #29 by kobra

I looked at your photos, and yes that large spaced area is different but it doesn't appear to be corrected by the #rightBox in the CSS. That is what I was saying.
Those are screen shots of your site with and without the css addition

As you are not seeing a difference - - put it back in and leave it in so that the others in the community can post what browser they use and what they see

Zen-Venom Get Bitten

16 Aug 2010, 6:58 PM
#30
airsoftoutfitter avatar

airsoftoutfitter

Zen Follower

Join Date:
Dec 2009
Posts:
244
Plugin Contributions:
0

Post #30 by airsoftoutfitter

Ok, will do, but can you please help me with my other issue?

16 Aug 2010, 7:57 PM
#31
airsoftoutfitter avatar

airsoftoutfitter

Zen Follower

Join Date:
Dec 2009
Posts:
244
Plugin Contributions:
0

Post #31 by airsoftoutfitter

AirsoftOutfitter:

Ok, will do, but can you please help me with my other issue?

Well I figured out how to get the price into the add to cart box, now all i need to do is get the price red, and leave the "our price" black...

16 Aug 2010, 10:13 PM
#32
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #32 by kobra

all i need to do is get the price red, and leave the "our price" black...
As both of those are the same tag & class it would take a good bit of recoding to seperate them

Zen-Venom Get Bitten

16 Aug 2010, 10:22 PM
#33
airsoftoutfitter avatar

airsoftoutfitter

Zen Follower

Join Date:
Dec 2009
Posts:
244
Plugin Contributions:
0

Post #33 by airsoftoutfitter

kobra:

As both of those are the same tag & class it would take a good bit of recoding to seperate them

Do you know what it takes to accomplish this?

16 Aug 2010, 10:41 PM
#34
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #34 by kobra

As I believe you altered that to be "our price" there is constant associated with that
Find all instances of that constant in the files and especially look for where they are placed together with the numerical variable "price"

Currently, they are combined in the tag & class respectively
id=productPricesAdd, class=productGeneral

You will need to place one of them into another div every where it turns up in the files
I believe that it is assembled and passed as an array

Zen-Venom Get Bitten

16 Aug 2010, 10:52 PM
#35
airsoftoutfitter avatar

airsoftoutfitter

Zen Follower

Join Date:
Dec 2009
Posts:
244
Plugin Contributions:
0

Post #35 by airsoftoutfitter

kobra:

As I believe you altered that to be "our price" there is constant associated with that
Find all instances of that constant in the files and especially look for where they are placed together with the numerical variable "price"

Currently, they are combined in the tag & class respectively
id=productPricesAdd, class=productGeneral

You will need to place one of them into another div every where it turns up in the files
I believe that it is assembled and passed as an array

This is where I input the text to show next to my price. I am not sure how I can alter this to a separate tag:

<!--bof Product Price block --><div id="rightBox" class="forward"> <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 : 'Our Price: ') . ***zen_get_products_display_price((int)$_GET['products_id']); ?></h2> <!--eof Product Price block -->
17 Aug 2010, 1:40 AM
#36
airsoftoutfitter avatar

airsoftoutfitter

Zen Follower

Join Date:
Dec 2009
Posts:
244
Plugin Contributions:
0

Post #36 by airsoftoutfitter

Kobra,

I moved my Product Details, but and had a hard time getting the layout right. It looks right now, but not sure if I did it correctly, can you take a look at this code and let me know if you see any errors?

<!--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 --> <br class="clearBoth" /> <!--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 . '<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); ?> <?php if ($display_qty != '' or $display_button != '') { ?> <div id="cartAdd"> <div id="productPricesAdd" 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 : 'Our Price: ') . zen_get_products_display_price((int)$_GET['products_id']); ?></div>
<?php
  echo $display_qty;
  echo $display_button;
        ?>
      </div>
<?php } // display qty and button ?> <?php } // CUSTOMERS_APPROVAL == 3 ?> <!--eof Add to Cart Box-->

<br class="clearBoth" /><br class="clearBoth" />

<!--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))) ) { ?> <div id="productDetailsListAdd" class="forward"> <?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 --></div></div>

I created a second </div> at the end, because the Product Details had this <ul id="productDetailsList" class="forward">, however when I moved the code and placed it it offset my attributes and I couldn't get them to align anymore. So I changed the <ul id="productDetailsList" class="forward"> to <div id="productDetailsListAdd" class="forward"> and everything seems to work fine. I appreciate your expertise!