Bixie Forum

This is the forum for the free Bixie extensions and general questions.
Bixie customers can use the Support Center for their support questions.

You can visit the old forum here.

Video Tutorials

Bixie now provides video tutorials to help you setting up the Bixie VM-Chrono module.

Check out the video tutorials here for a step-by-step installation help!

Welcome, Guest
Please Login or Register.    Lost Password?

How To modify the add to cart confirmation dialog
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: How To modify the add to cart confirmation dialog
#317
How To modify the add to cart confirmation dialog 1 Year, 6 Months ago  
How to modify the add to cart confirmation dialogue box? I would like to echo a hidden field from my form (cut length and price) within the Ready To order box:

mowlman
mowlman
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#320
Re:How To modify the add to cart confirmation dialog 1 Year, 6 Months ago  
You would have to do that in the file mod_bix_vmchrono.php.
On line 56 is the div defined that displays the message.
It's javascript, so you can echo form values there as well.
Make sure the input you want to show has in ID. Then make line 56 like this:
Code:

var responseText = '<div class=\"shop_info\">".JText::_('FORM_PROCESSED')."<br/>Cut lenght: '+$(\'inputID\').value+' inches</div>';


Not tested, but that should show something like your image.
You can edit the text of FORM_PROCESSED in the languagefile.
malles
malles
Admin
Posts: 206
graph
User Offline Click here to see the profile of this user
Last Edit: 2010/08/03 22:54 By malles.
The administrator has disabled public write access.
Bixie customers can use the Support Center for their support questions.
 
#329
Re:How To modify the add to cart confirmation dialog 1 Year, 6 Months ago  
Line 56 doesn't seem quite right for me, see 1st image attached



However, near line 165 there's an add to cart confirmation code starts:
if ($addtocart_conf) { .... 2nd image attached

This has the responsetext you specified.



It looks like I should apply the code change for this responsetext?
mowlman
mowlman
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/08/04 17:30 By mowlman.
The administrator has disabled public write access.
 
#331
Re:How To modify the add to cart confirmation dialog 1 Year, 6 Months ago  
Yes, that's the one. I quess I was confused or had an other file-version.
malles
malles
Admin
Posts: 206
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
Bixie customers can use the Support Center for their support questions.
 
#335
Re:How To modify the add to cart confirmation dialog 1 Year, 6 Months ago  
Hello,

Thank you, I did find I needed to put double quotes around inputID.

Do you think this should work for hidden fields as well?

For example, in my form HTML I have two hidden fields:

<input value="" id="Cut_Length" name="Cut_Length" type="hidden" />
<input value="" id="adjust_price" name="adjust_price" type="hidden" />

Within my Form Javascript, I am calculating these values based on the length and fraction fields entered.

For example to get which radio button was selected for the fraction, I am using
var fraction = getCheckedValue(fraction_array);
var combined = $('length_tx1').value + ' ' + fraction + " inches";

I then would echo out combined with the new code you provided:
var responseText = '<div class=\"shop_info\">".JText::_('FORM_PROCESSED')."<br/>Cut lenght: '+$(\"combined\").value+' inches</div>';

My Radio getCheckedValue ftn is:
function getCheckedValue(radioObj) {
if(!radioObj) {
return "";
}
var radioLength = radioObj.length;
if( radioLength == undefined ) {
if(radioObj.checked) {
return radioObj.value;
} else {
return "";
}
} else {
for(var i = 0; i < radioLength; i++) {
if(radioObj[i].checked) {
return radioObj[i].value;
}
}
return "";
}
};

Thanks for your time,
-Bill
mowlman
mowlman
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#340
Re:How To modify the add to cart confirmation dialog 1 Year, 6 Months ago  
This would work with all values that are in the form, hidden or not.
malles
malles
Admin
Posts: 206
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
Bixie customers can use the Support Center for their support questions.
 
Go to topPage: 1
Moderators: baf