Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › How To Change The Item Description and More?
- This topic has 7 replies, 2 voices, and was last updated 11 years, 11 months ago by Bob Rockefeller.
-
AuthorPosts
-
November 26, 2012 at 5:12 pm #8009Bob RockefellerMember
I have a sidebar with a shopping cart in it by using the short code [wp_eStore_cart] in a text widget.
The item descriptions show up as “kim-tracy (4×6) ([pid:14])” as a link that doesn’t go anywhere.
I’d like to:
1) Change the text so something more like “kim-tracy (4×6)”
2) Drop the link
3) Get rid of the “Items in Your Cart” text block
How do I go about that?
Is there a PHP file I can customize? Which one drives the cart display in the sidebar widget?
Bob
November 26, 2012 at 5:42 pm #51805Bob RockefellerMemberAlso, the input fields for the Quantity are too narrow for double digits. How do I set the width for those?
.eStore_cart_item_qty {
width: 100px;
}
didn’t do it because wp_eStore_style.css line 23 sets the width to auto with an !important override.
Bob
November 26, 2012 at 6:23 pm #51806Bob RockefellerMemberAnd while I’m at it.
I’d like the price column to be right aligned. Or maybe decimal aligned.
Can that be done?
Bob
November 27, 2012 at 6:21 am #51807adminKeymaster1) It looks like you are using the NextGen gallery integration method 2. If my assumption is correct then you can’t drop the “[pid:14]” string. it is required for this integration option
2) The link goes to the page where the item was added from. This can be dropped by applying a tweak in the PHP file. Open the “eStore_cart.php” file and find the following line of code:
<a href='".$item['cartLink']."'>".$item['name']."</a>
Change that to the following to remove the link:
".$item['name']."
3) You can customize the message using this method:
4) Did you try adding something like the folloiwng in the custom CSS file of the estore plugin (the custom css file loads after the normal CSS file):
.eStore_cart_item_qty {
width: 100px;
}Please post a link to the page where you have the cart so I can check it too.
November 30, 2012 at 1:54 pm #51808Bob RockefellerMember1) Is there a way to filter the ‘name’ to strip the “[pid:14]” for display only?
2) Works!
3) OK. I wanted it completely gone, not reworded, so I just used display:none; in the CSS.
4) I moved that CSS to wp_eStore_custom_style.css but it was still overridden by wp_eStore_style.css. I’ll work on moving the site from my MAMP development server to a public server somewhere.
Bob
December 2, 2012 at 8:28 pm #51809Bob RockefellerMemberOK, I’ve set up a test site for you to look at. It’s at:
[http://testmule.robertrockefeller.com]
Click the Clients menu at the top and log in as test/test. Add a couple of images from the galleries there and see the size of the quantity box in the shopping cart in the right sidebar. I’d like to change it’s width. Right now I have:
.eStore_cart_item_qty {
width: 100px;
}
in the wp_eStore_custom_style.css file, but that is being overruled by the CSS in wp_eStore_style.css.
How do I properly target my CSS?
Bob
December 3, 2012 at 1:22 am #51810adminKeymasterI had a look at your site and I don’t think the quantity field’s size is an issue. It looks good just the way it is. Anyway, if you add the following to the custom CSS file, it should override the width:
.shopping_cart input, .eStore_cart_fancy1 input, .eStore_cart_fancy2 input {
width: 100px !important;
}December 3, 2012 at 12:39 pm #51811Bob RockefellerMemberThat works. So I guess I needed to out !important the wp_eStore_style.css !important.
Thanks.
-
AuthorPosts
- You must be logged in to reply to this topic.