Jump to content

Call for Price?


Guest code_3

Recommended Posts

Guest The Squirrel

So the price is hidden until they get to the payment pages? I don't fully understand but this is how I'd go about displaying "call for price" on the product page:

Set the price of the product to $0, then in includes/content/viewProd.inc.php do something like:

if(price == 0){

assign("CALL_FOR_PRICE", "Call For Price")

} else {

// normal procedure

}

Then plonk the CALL_FOR_PRICE variable in viewProd.tpl somewhere.

But that's just me and I usually do things wrong :homestar:

Of course, if that went to the payment pages the price would be zero. So you'd need a checkbox on the add product page or something.

Are you versed in PHP? Because the code above is just a rough version - don't go putting it in any files or your shop will explode.

Link to comment
Share on other sites

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...