New Zenner
- Join Date:
- Aug 2011
- Posts:
- 74
- Plugin Contributions:
- 0
How to delete the <br> in buttons?
Hi Ya
can anyone help me with this?
Views: 925
New Zenner
Hi Ya
can anyone help me with this?
New Zenner
sorry, here is the link
http://cncspares.com.au/index.php?main_page=products_new
I want the buttons to be adjacent to each other.
like:
button1 button2
when I am editing it using firebug, i saw a <br> in between the 2 buttons but cant find where that <br> lies
Any help is much appreciated
Black Belt
A dreaded Template Monster template
You can try the developers tool kit
https://www.zen-cart.com/tutorials/index.php?article=38
https://www.zen-cart.com/tutorials/index.php?article=39
New Zenner
kobra:
A dreaded Template Monster template
You can try the developers tool kit
https://www.zen-cart.com/tutorials/index.php?article=38
https://www.zen-cart.com/tutorials/index.php?article=39
still cant seem to find what I am looking for :no:
using developers tool is confusing though, sorry kobra but is there any way to solve my problem?
New Zenner
I noticed that the details and sold out buttons only shows when Products status in Catalog when out of stock is set to 1, but when I set it to 0, it does not appear. I deleted the <br> in the code under includes/templates/your_template/templates/tpl_modules_products_new_listing.php but it seems that it only works when there is quantity in stock on every product. How will I make the two buttons adjacent to each other(the details button and sold out button)?:lookaroun
Any help please:oops:
Totally Zenned
The separation of the details button and sold out icon in that manner is part of a much more general layout algorithm.
Changing it could be done, though I'm not going to even think about how, as there would be a ton of knock on effects.
But if you want to take a look for yourself, dig into how the $list_box_contents array is built and in particular in files like includes/modules/product_listing.php (you'll find the <br /> tag in the PRODUCT_LIST_PRICE case.
But you'll need to take account of all the things that could come after it on your site, and then do the same for featured_products, new_products and specials.
New Zenner
kuroi:
The separation of the details button and sold out icon in that manner is part of a much more general layout algorithm.
Changing it could be done, though I'm not going to even think about how, as there would be a ton of knock on effects.
But if you want to take a look for yourself, dig into how the $list_box_contents array is built and in particular in files like includes/modules/product_listing.php (you'll find the <br /> tag in the PRODUCT_LIST_PRICE case.
But you'll need to take account of all the things that could come after it on your site, and then do the same for featured_products, new_products and specials.
thanks Kuroi for the reply, i found the <br/> tag in includes/modules/my_template/product_listing.php. I deleted it but again, it doesnt work. I've been working on it for days and still cant get how to solve that. :frusty:
I tried to put some of the codes from the includes/modules/my_template/featured_products.php to includes/modules/my_template/product_listing.php and includes/templates/theme425/templates/tpl_modules_products_new_listing.php but nothing seem to happen. My knowledge in php is not that strong,can anyone help me on this?
Black Belt
My knowledge in php is not that strong,can anyone help me on this?
Unfortunately we do not have the template monster hacked up code
Best to ask them
Totally Zenned
My earlier answer didn't make it clear enough that product_listing is just an example. The specific page that you referred to earlier would be laid out by the new_products module, so that's where you'd have to make your change.
But I'm not going to try to predict the side effects for products that aren't sold out.
New Zenner
thanks kuroi and kobra for the response, i did align them now horizontally by playing around with the code under includes/templates/my_templates/templates/tpl_modules_products_new_listing.php...BUT when it comes to unsold products, the detail button is still there and I cant get rid of that "Max:1"
Tell staff why this post should be reviewed.