![]() |
Changing the "Ask a question about this product" form
Hi Everyone,
I'm looking to adjust the "Ask a question about this product" popup page. We use this for people to request a sample and need the popup to have name, address and post code and they must be set to required. I have found the code for the form and the php that deals with the email but I don't really know how to adjust these. Has anyone changed this before? If the worst comes to the worst I could always just make it a link to the contact us page but this won't include the product page that the customer came from. |
Re: Changing the "Ask a question about this product" form
hello, i am using the 2 column design. Home Shopping Cart Contact Us links are at the top just below the search bar. I need to add the sell with us link. Can you tell me the exact tpl i need to edit. Thanks so much for the help.
|
Re: Changing the "Ask a question about this product" form
Quote:
You don't need to edit any tpl files to add new links to the speedbar. Just click on content then speedbar from the admin control panel and add what you want from there. |
Re: Changing the "Ask a question about this product" form
Anyone? got any ideas on how to edit the ask a question about this product popup?
|
Re: Changing the "Ask a question about this product" form
ok, I put this together quickly for you... tested and working fine on v4.5.5
1) skin/common_files/customer/main/ask_question.tpl After... Code:
<tr> Insert... Code:
{*--------------------------------*} 2) In popup_ask.php After... Code:
Insert... Code:
Then after... Code:
$mail_smarty->assign('product', $product['product']); Insert... Code:
$mail_smarty->assign('sample', $_POST['sample']); // XCARTMODS ADDED Then after... Code:
$smarty->assign('productid', $productid); Insert... Code:
$smarty->assign('product', $product); // XCARTMODS ADDED 3) In skin/common_files/mail/html/ask_question.tpl After... Code:
{if $phone} Insert... Code:
{if $sample eq "on"} 4) Do a template cleanup. Done :) |
Re: Changing the "Ask a question about this product" form
I haven't tried this yet Phil but your a superstar, no idea how you can put this together so quickly.
Your a coding genius. I'll give it a try shortly after I figure out this bloody mysql left join milarky i'm working on arrgghhh drives me mad. |
Re: Changing the "Ask a question about this product" form
:) left joins can be pain, might be able to help, PM me
|
Re: Changing the "Ask a question about this product" form
Phil that works a treat and looks so easy once you know how.
Thank you so much for your help |
Re: Changing the "Ask a question about this product" form
Thanks for the offer Phil i'm basically just trying to export all the products from one particular category in to a SQL or CSV file so I can import them in to a new DB.
I thought i couldn't do this in xcart but I have just found that you can by searching for products and selecting the category and putting nothing else in then just export these results. |
All times are GMT -8. The time now is 09:53 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.