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
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 email for price... suggestions please
Previous Page | Next Page
Author « Topic »
Page: of 7

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 Software
Click Here to sign up for our newsletter
Click 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  
Quick entry is here - https://paste.pics/S4J3Q

You need to add the zeroprice class for it function



*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

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  
No, you add .zeroprice .addtocart, .zeroprice .addtocart.prodaddtocart, .zeroprice .detailaddtocart, .zeroprice .detailquantity, .zeroprice .detailprice{display: none;} to your style.css file
and add zeroprice to the custom css field in the admin to the products with a zero price



*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

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  
Can you click on my name and send me ftp details and the login for the vsadmin and I'll take a look for you?



*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

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  
Do you have some form of caching enabled here because any changes I make to the css doesn't take effect.

Even if I remove the css for the top header image it remains visible.




*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

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  
Okay that's better.

Everything seems fine now. Let me know if there's anything else



*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

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  
Errr no, Vince is the superstar, I'm just here to help now and again



*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

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.
Page: of 7 « Topic »  
Previous Page | Next Page
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000