I would like to make a modification to the price of the product based on the text the user typed in the textbox. I could set the value price in admin but I would like the amount to change based on the amount of letters.
Example 1-6 letters = $15 and each additional letter is $2.50. I already have the math worked out.
I am just hoping there is someone out there who can tell me how to get the text. I know that in shopping_cart.php it is $attr_value, but how do I get it inside the funtion get_products() located in includes\classes\shopping_cart.php? I know very little php so if you try to explain it please keep that in mind.
Latest News: (loading..)
[Contribution] Option Types v2
Started by Zappo, Jun 16 2009, 12:56
745 replies to this topic
#741
Posted 27 April 2012, 00:49
#742
Posted 02 May 2012, 13:53
I thought every thing was working but I have found that the text only shows up through the order confirmation.
The invoice, packingslip only shows CUSTOMER-INPUT .
Logged in if you go to go to account_history_info all I see is -
($15.00) for the attribute.
I went through the instructions several times and compared the files in the contributions with my files and can't figure out what I have missed. Can someone please help me figure out what I am doing wrong.
The invoice, packingslip only shows CUSTOMER-INPUT .
Logged in if you go to go to account_history_info all I see is -
I went through the instructions several times and compared the files in the contributions with my files and can't figure out what I have missed. Can someone please help me figure out what I am doing wrong.
#743
Posted 13 May 2012, 21:10
ToneDJ, on 02 May 2012, 13:53, said:
I thought every thing was working but I have found that the text only shows up through the order confirmation.
The invoice, packingslip only shows CUSTOMER-INPUT .
Logged in if you go to go to account_history_info all I see is -
($15.00) for the attribute.
I went through the instructions several times and compared the files in the contributions with my files and can't figure out what I have missed. Can someone please help me figure out what I am doing wrong.
The invoice, packingslip only shows CUSTOMER-INPUT .
Logged in if you go to go to account_history_info all I see is -
I went through the instructions several times and compared the files in the contributions with my files and can't figure out what I have missed. Can someone please help me figure out what I am doing wrong.
Are you using the Paypal IPN module, if so it will produce the CUSTOMER-INPUT error
---------------
I'm using Option Types 2.1.3 and solved the problem as follows:
Integrating with other Contributions (Paypal IPN)
from Paypal IPN v2.3.3 install_guide_READ_ME.html
Note: Rule of thumb - whenever you make ANY change to checkout_process.php you MUST manually merge the change into paypal_ipn.php and ipn.php
The PayPal IPN works different from other payment modules and bypasses the checkout_process file. Which means that any contribution which modifies the checkout_process.php file will require some manual coding TLC in paypal_ipn.php and ipn.php.
From version 1.3 of this module, the PayPal IPN Payment Module is compatible with the Register Globals Patch v1.4 - you do not need to make any modifications for this.
Version 2.0 introduces a new code base so any fixes posted for versions 1.x probably won't work without modification.
---------------------
I had to modify /includes/modules/payment/paypal_ipn.php
At line 249 (a single line change only)
to match change in checkout_process.php line 230 which was changed by Option Types 2.1.3 contribution.
as follows:
$sql_data_array = array('orders_id' => $insert_id,
'orders_products_id' => $order_products_id,
'products_options' => $attributes_values['products_options_name'],
// BOF - Zappo - Option Types v2 - ONE LINE - Update insert query. changed to use value from $order->products.
'products_options_values' => $order->products[$i]['attributes'][$j]['value'],
// EOF change added by ADM
'options_values_price' => $attributes_values['options_values_price'],
'price_prefix' => $attributes_values['price_prefix']);
#744
Posted 13 May 2012, 21:16
I'm using 2.1.3
I have all my options and attributes with a "sort_order"
When I put a product with several attributes into the cart, the attributes appear in the correct sort order.
However if I go to "checkout" but then return to the cart, the attributes have lost their sort_order
There is a similar problem in Admin in
packing_slip
invoice
Anyone know how to keep the attribute order consistently correct.
I have all my options and attributes with a "sort_order"
When I put a product with several attributes into the cart, the attributes appear in the correct sort order.
However if I go to "checkout" but then return to the cart, the attributes have lost their sort_order
There is a similar problem in Admin in
packing_slip
invoice
Anyone know how to keep the attribute order consistently correct.
Edited by doon1947, 13 May 2012, 21:16.
#745
Posted 22 May 2012, 20:34
Hi Gabriel, how did you manage to solve the problem with updating quantities/deleting items in the cart?
The Update and Remove buttons don't show at all any more (nor the number of items in the cart)!
Thanks in advance,
Andrej
The Update and Remove buttons don't show at all any more (nor the number of items in the cart)!
Thanks in advance,
Andrej
bluejayt, on 19 November 2011, 06:40, said:
I've been lurking here for about 2 weeks now, and I thought I was close on my own changes to /includes/classes/shopping_cart.php. I've gotten past the issue with updating quantities/deleteing items out of the cart ...
Attached Files
#746
Posted 22 May 2012, 22:05
After some research I figured that probably the file "catalog/shopping_cart.php" is the culprit.
In optiontypes231 install package I think something is not right with this file.
In "catalog" folder - with files to be simply added to oSc 2.3.1 installation - there are two files: "catalog/shopping_cart.php" and stylesheet.css, which cannot be just copied over oSc 2.3.1 since they are from 2009.
On the other hand in "install.txt" file there are instructions for modifying "catalog/shopping_cart.php" file of 2.3.1 oSc, but under
there is some code to replace which can not be found in 2.3.1 oSc; and if all the changes are made the result is like in the picture in previous post - no "Update" butten or "Remove text".
Since I don't know programming - can somebody please help?!
In optiontypes231 install package I think something is not right with this file.
In "catalog" folder - with files to be simply added to oSc 2.3.1 installation - there are two files: "catalog/shopping_cart.php" and stylesheet.css, which cannot be just copied over oSc 2.3.1 since they are from 2009.
On the other hand in "install.txt" file there are instructions for modifying "catalog/shopping_cart.php" file of 2.3.1 oSc, but under
Since I don't know programming - can somebody please help?!
BFkiUB, on 22 May 2012, 20:34, said:
Hi Gabriel, how did you manage to solve the problem with updating quantities/deleting items in the cart?
The Update and Remove buttons don't show at all any more (nor the number of items in the cart)!
Thanks in advance,
Andrej
The Update and Remove buttons don't show at all any more (nor the number of items in the cart)!
Thanks in advance,
Andrej















