Okay, after trying to figure this out on my own for the last 4 hours I finally give up (and several months of playing with around tpl files). I am trying to do some simple modifications to the cart that I could do in html or within the code on my old cart literally in minutes. But with Smarty, I can’t even figure out where these lines are to modify them…which is EXTREMELY frustrating to me!
I have 3 simple tasks I need to complete but can’t not even find the starting point.
I want to remove the price from the grid and list view so there is not a price shown until you get to the product page. Reason: I have modifiers in place that show the wrong price until on the product page.
I am wanting the change the word “Quantity” next to the quantity box into a link to my quantity discount page. Which I would also change the lettering to “Quantity Discounts start at just 2 Item”.
I would also like add a small white border around all the product thumbnails so the black in the image doesn’t bleed off into the background (I use a black background for my site).
As stated above, these are NORMALLY extremely simple tasks for me but I’m pulling my hair out just trying to find a starting point with CS. Once I understand the basic functionality I can probably figure the rest out. And the Smarty “guides” don’t seem to be written for someone who knows nothing like me…but more for a person who already knows basic coding.
I want to remove the price from the grid and list view so there is not a price shown until you get to the product page. Reason: I have modifiers in place that show the wrong price until on the product page.[/quote]
Probably you will need to comment out in a tpl. Use Admin>Desin>Design Mode
[quote]
2. I am wanting the change the word “Quantity” next to the quantity box into a link to my quantity discount page. Which I would also change the lettering to “Quantity Discounts start at just 2 Item”.[/quote]
Use Admin>Design>Translation Mode
[quote]
3. I would also like add a small white border around all the product thumbnails so the black in the image doesn’t bleed off into the background (I use a black background for my site).[/quote]
In your skin customer styles.css
[COLOR=“DeepSkyBlue”].product-image img,
.product-item-image img,
.categories-image img,
.feature-image img,
.image-border img {
background-color:[/COLOR]??? (what ever it is in yours!
Just to alliterate a bit on what Barry has posted, for your quanitity link in admin/content/languages do a search for the term ‘quantity’. In the box for the term you can type Quantity. This will link the word for you.
[quote name=‘roban’]Just to alliterate a bit on what Barry has posted, for your quanitity link in admin/content/languages do a search for the term ‘quantity’. In the box for the term you can type Quantity. This will link the word for you.[/QUOTE]
Thanks for that Roban… I sometimes make the assumption that everyone is much clever than me! MY WIFE INSIST THEY ARE!!! :rolleyes:
The main problem I was having was trying to find what tpl file I needed to comment out the line. Simply stating to use the “design mode” made something click in my brain that made me realize that using that function would show me what templates were being used. Kind of a “duh” moment for me.
Same goes for changing the “Quantity” text. I didn’t even think of using the translation mode even though I had used it in the past. Just goes to show that when you get frustrated you start not thinking straight.
And Roban, thanks for that little tip. I had no idea that the cart was cable of doing that…worked perfectly.
The only thing I wasn’t able to accomplish 100% is the border around the image. I got it to work perfectly in the “grid” view which was most important to me. But I can’t seem to get it to work right on the product page. Probably has something to do with “[COLOR=DeepSkyBlue].product-item-image img,[/COLOR]” not being listed in my CSS file. I’ve played around trying to figure it out for a while but no luck.
The only thing I wasn’t able to accomplish 100% is the border around the image. I got it to work perfectly in the “grid” view which was most important to me. But I can’t seem to get it to work right on the product page. Probably has something to do with “[COLOR=DeepSkyBlue].product-item-image img,[/COLOR]” not being listed in my CSS file. I’ve played around trying to figure it out for a while but no luck.[/QUOTE]
product-image img,
.product-item-image img,
.categories-image img,
.feature-image img, .image-border img {
background-color:#???;
border:3px solid #???;
styles.css line
LOAD FIREFOX and FIREBUG you can inspect and find all sorts of things.
Well I have been using Firebug the last few months which helps out a lot. But it is telling me that the image on the product page is referencing the “product-image” tag which I already have the border on (works great in the grid view). I simply don’t have a few of the lines you are suggesting to change in my style.css file. I do have some of them in my style.base.css, but if I change them in there it makes my grid view have a black border between the image and the white border (all kinds of wrong looking).
I’m not too concerned about the category image (since they are black background images anyway) or even the feature image (since I currently am not using).
If you happen to be bored and want to have a look at [URL]URL] you can see the issue I am facing. But I’m not too concerned since my grid view at least looks proper now.