Vince
Administrator
42718 Posts |
Posted - 10/09/2024 : 02:18:09
Hi Richard It looks like you are replacing the text for the price zero message with a button which is a really good idea. But technology marches ever on and the code for the "Contact Us" has changed. But I think something like this will do what you want and for a lot less script now... $pricezeromessage='<button type="button" class="ectbutton smaskaquestion" onclick="displayectcontact(\'askquestion\',this.form.elements[\'id\'].value)">Email for Price</button>'; You would also need to enable the Contact Us if it isn't already enabled in the includes.php file... $usecontactus=TRUE; And finally, it depends on the popup window code being included in the page which you could do for instance by adding the Contact Us widget to the left navigation below the menu. To do that you would use this... <div class="left_text"> <?php $minicssaction="contactus"; include "vsadmin/inc/incminicss.php"; ?> </div> Can you try that and let me know how it goes? Vince Click Here for Shopping Cart SoftwareClick Here to sign up for our newsletterClick Here for the latest updater
|
webspaceunlimited
Advanced Member
United Kingdom
189 Posts |
Posted - 10/09/2024 : 06:38:56
thank you Vince - we are getting there but not there yet!
seems we have a few more errors crop up now I have put your code on the pages
Some Items I am getting some messages popping up saying configure ? https://www.baby-barn.co.uk/products.php?cat=3 second item on that page for example Plus we are getting an add to cart button?
It should be when there is a zero price say message for price but should be available to add to a basket
Sorry
Kind Regards Richard
|
webspaceunlimited
Advanced Member
United Kingdom
189 Posts |
Posted - 10/09/2024 : 07:10:52
I explained what I meant above badly - sorry the click for price works perfectly what has happened is now we have a add to cart button too - I need to suppress the add to cart for the zero priced items
Help please :)
Kind Regards Richard
|
Phil
ECT Moderator
United Kingdom
7674 Posts |
Posted - 10/09/2024 : 07:49:08
Hi Richard, Add this to your css .zeroprice .addtocart, .zeroprice .addtocart.prodaddtocart, .zeroprice .detailaddtocart, .zeroprice .detailquantity, .zeroprice .detailprice{display: none;} Then in your admin list the products by zero price by entering 0 in the price range > list products Then from the quick entry choose price to confirm they're all zero price, then from the quick entry add zeroprice to the custom css One other suggestion, change the order of the css calls from <!-- /// Template CSS //////// --> <link href="css/style.css" rel="stylesheet" type="text/css" /> <link href="css/ectstyle.css" rel="stylesheet" type="text/css" /> <link href="css/ectcart.css" rel="stylesheet" type="text/css" /> to <!-- /// Template CSS //////// --> <link href="css/ectcart.css" rel="stylesheet" type="text/css" /> <link href="css/style.css" rel="stylesheet" type="text/css" /> <link href="css/ectstyle.css" rel="stylesheet" type="text/css" /> *Contact Us**Buy The PHP Capture Card Plugin**Rate Our Services/View Our Feedback*
Edited by - Phil on 10/09/2024 23:55:28
|
webspaceunlimited
Advanced Member
United Kingdom
189 Posts |
Posted - 10/09/2024 : 09:39:24
thank you Phil
I have made those changes
still have a random link thats there that has the word "configure" on it look at: https://www.baby-barn.co.uk/products.php?cat=3 you will see the second item has such a message
Sincere thanks for the ongoing help
|
webspaceunlimited
Advanced Member
United Kingdom
189 Posts |
Posted - 10/09/2024 : 09:46:04
also
quick entry? to add to the custom css?
sorry could you explain where I find that? the items are zero price and adding the css instruction to my style sheet for the site hasn't done the job :(
|
Phil
ECT Moderator
United Kingdom
7674 Posts |
Posted - 10/09/2024 : 09:57:26
|
webspaceunlimited
Advanced Member
United Kingdom
189 Posts |
Posted - 10/09/2024 : 10:09:42
thank you Phil so.. it needs the full: ".zeroprice .addtocart .addtocart.prodaddtocart .detailaddtocart .detailquantity .detailprice{display: none;}" adding against every product?
|
Phil
ECT Moderator
United Kingdom
7674 Posts |
Posted - 10/09/2024 : 10:23:27
Edited by - Phil on 10/09/2024 23:57:05
|
webspaceunlimited
Advanced Member
United Kingdom
189 Posts |
Posted - 10/09/2024 : 10:29:05
thank you Phil ill do that now
|
webspaceunlimited
Advanced Member
United Kingdom
189 Posts |
Posted - 10/09/2024 : 10:48:06
it doesnt appear to have worked sorry :(
to recap I have added the code Vince mentioned above to search, products, proddetail pages
I added to the main css the css rule Phil mentioned
I checked the items we want to email for price ll showing 0 (some have a list price) but all zero price and added in the custom css class the and then added the css rule of zero price to all the products we want to have the button
The button is there and works BUT w have the add to cart showing too - that needs to go
Thank you all for the help and sorry its being awkward
|
Phil
ECT Moderator
United Kingdom
7674 Posts |
Posted - 10/09/2024 : 10:57:46
|
webspaceunlimited
Advanced Member
United Kingdom
189 Posts |
Posted - 10/09/2024 : 11:11:19
details sent - and thank you for your time Phil
|
Phil
ECT Moderator
United Kingdom
7674 Posts |
Posted - 10/09/2024 : 11:55:15
|
webspaceunlimited
Advanced Member
United Kingdom
189 Posts |
Posted - 10/09/2024 : 12:35:21
Damn good call.. yes there is cacing there Have purged and disabled it
|
Phil
ECT Moderator
United Kingdom
7674 Posts |
Posted - 10/09/2024 : 13:15:59
|
webspaceunlimited
Advanced Member
United Kingdom
189 Posts |
Posted - 10/09/2024 : 13:17:51
Thank you Phil.. you are a superstar!
|
Phil
ECT Moderator
United Kingdom
7674 Posts |
Posted - 10/09/2024 : 13:22:32
|
webspaceunlimited
Advanced Member
United Kingdom
189 Posts |
Posted - 10/09/2024 : 14:05:27
Superstar as well.. i know Vince is lol
|
webspaceunlimited
Advanced Member
United Kingdom
189 Posts |
Posted - 10/10/2024 : 02:08:22
Sorry for brief replies last night .. but just wanted to say thank you to Vince and Phil, both absolute superstars. I can not believe I overlooked the caching - that was the light bulb moment for me Phil Thank you for the help and support.
|
|