Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Discounts Apply ! struggling to remove
Author « Topic »  

AndyHarrison
Starting Member

United Kingdom
14 Posts

Pre-sales questions only
(More Details...)

Posted - 08/12/2022 :  11:28:42  
Hi,

Working my way through our new site I added a free shipping over £50 discount and now have the text

Discounts Apply ! Free UK shipping over £50

On the category, product and product details pages which I'd like to remove.

I discovered $detailpagelayout in includes and removed discounts from the layout but am still left with the Discounts Apply ! text on each page.

There was a post elsewhere on the forum which seems to indicate it could be gotten rid of using css but that's a bit over my head at the moment, would someone mind explaining in a little more detail for us beginners

Thanks,

Andy

1818charlie
ECT Moderator

United Kingdom
1177 Posts

Posted - 08/12/2022 :  11:45:02  
Hi Andy

Yes you can supress the text via CSS.

Add the following to your site style sheet

div.eachcatdiscountsapply, div.eachproddiscountsapply, div.discountsapply, span.detaildiscountsapply {
color: #DF1A1A;
display: none;
}

Apart from the above text in blue that is the entry in the ectcart.css file

Steve
Manchester UK

How to update your store
https://www.ecommercetemplates.com/updater_info.asp

QuickBuy, Product & Product Details Layouts
https://www.ecommercetemplates.com/help/layouts.asp

User Manual - an easy read!
https://www.ecommercetemplates.com/free_downloads.asp#usermanual

Request Updater
https://www.ecommercetemplates.com/updaters.asp

Edited by - 1818charlie on 08/12/2022 11:45:58

AndyHarrison
Starting Member

United Kingdom
14 Posts

Pre-sales questions only
(More Details...)

Posted - 08/12/2022 :  12:46:20  
Hi Steve,

You're going to have to dumb that down a little!

I need to add

div.eachcatdiscountsapply, div.eachproddiscountsapply, div.discountsapply, span.detaildiscountsapply {
color: #DF1A1A;
}

to ectcart.css

and

div.eachcatdiscountsapply, div.eachproddiscountsapply, div.discountsapply, span.detaildiscountsapply {
color: #DF1A1A;
display: none;
}

to where, ectstyle1.css?


Andy

Vince
Administrator

42428 Posts

Posted - 08/12/2022 :  13:43:29  
Hi Andy
There is actually a parameter that you can add to the includes.php file so that discounts are not displayed and that is...
$noshowdiscounts=TRUE;
Can you try that first and see if it works for you as it might be an easier solution.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

AndyHarrison
Starting Member

United Kingdom
14 Posts

Pre-sales questions only
(More Details...)

Posted - 08/13/2022 :  05:04:29  
Hi Vince,

That was certainly an easier solution! Thanks.

Now that I've done that I'm just left with setting up the payment processor, should be easy as we use paypal already on current site, and populating site with actual products. Its been surprisingly easy, congrats on a great product.

My HTML skills are very basic, I was a C/C++ programmer by trade but that was almost 20 years ago so things like css have passed me by, but would like to learn more, can you recommend some reading?

Regards,
Andy

1818charlie
ECT Moderator

United Kingdom
1177 Posts

Posted - 08/13/2022 :  13:34:51  
Hi Andy

A great starting place is https://www.w3schools.com/

https://web.dev/learn/css/

https://css-tricks.com/

https://developer.mozilla.org/en-US/docs/Learn/CSS

UPDATE 15/08 - Apologies Andy, this parameter slipped past me
quote:
Vince: There is actually a parameter that you can add to the includes.php file so that discounts are not displayed and that is...$noshowdiscounts=TRUE;


-----------------------------------------------
Steve
Manchester UK

How to update your store
https://www.ecommercetemplates.com/updater_info.asp

QuickBuy, Product & Product Details Layouts
https://www.ecommercetemplates.com/help/layouts.asp

User Manual - an easy read!
https://www.ecommercetemplates.com/free_downloads.asp#usermanual

Request Updater
https://www.ecommercetemplates.com/updaters.asp

Edited by - 1818charlie on 08/15/2022 01:23:01

ITZAP
Ecommerce Template Guru

Australia
1006 Posts

Posted - 08/13/2022 :  19:42:12  
Hi Andy,
To learn more about HTML and CSS, I recommend you subscribe and watch: YouTube Videos by Kevin Powell >>
His videos range from Basic though to Advanced.
This is perhaps a good starting point: Important HTML concepts for beginners >>

Simply search YouTube to find a stack of other helpful web design videos.

Gary

Vince
Administrator

42428 Posts

Posted - 08/14/2022 :  02:51:20  
Hi Andy
quote:
Its been surprisingly easy, congrats on a great product.
Many thanks for saying so and I'm glad you like it. And also many thanks to Steve, Gary and the rest of those that chip in and help with answers!

My final addition for how to learn CSS is get to know the Object Inspector which all the major browsers now have. Using the cart as an example, go to the products page for instance and right click an interesting part of the product layout and choose "Inspect". This will open the object inspector to showing the CSS classes that affect that item and you can edit / alter / add to those classes to see what effect the changes have.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

ITZAP
Ecommerce Template Guru

Australia
1006 Posts

Posted - 08/14/2022 :  18:12:35  
Yes, good point Vince. Here is Kevin Powell's video demonstrating: How to use Firefox's Developer Tools >>

Gary

AndyHarrison
Starting Member

United Kingdom
14 Posts

Pre-sales questions only
(More Details...)

Posted - 08/15/2022 :  02:42:13  
Thanks all,

That should keep me busy for a while.

Andy
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000