Simple Checkout - for 2.3.1 (official support thread)
#281
Posted 10 May 2012 - 08:08 PM
#282
Posted 10 May 2012 - 10:59 PM
#283
Posted 11 May 2012 - 11:28 AM
I really tried to understand why it was breaking out of a parent container to fix it myself but could not figure it out.
Thanks for being active and doing so much back and forth with the community while you're developing.
Edited by pfrecon, 11 May 2012 - 11:37 AM.
#284 ONLINE
Posted 11 May 2012 - 11:41 AM
Thanks
I remember what it was like when I first started with osC. It can be overwhelming.
However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.
There are several good pros here on osCommerce. Look around, you'll figure out who they are.
#285
Posted 11 May 2012 - 05:49 PM
auto update cart contents will no longer available?
#286
Posted 12 May 2012 - 05:29 PM
Yes, I noticed those issues myself, and got them taken care of and uploaded.
@chemist4
I also fixed the auto refresh when discount codes are entered.
@PiLLaO
Yes. I removed the auto-update. If you want to add it back in then do this:
Find around 752:
.on('change', 'input[name=shipping]', function(){$.post('checkout.php', 'shipping='+$(this).val()+'&comments='+$('textarea[name=comments]').val(), function(){window.location.href = unescape(window.location.pathname);});})
Add this before that line:
.on('change', 'input[name^=cart_quantity]', function(){$('form[name=cart_quantity]').submit();})
As written now, if a customer enters a new quantity and hits enter, it will automatically submit the change (without that line of code).
The difference that the extra line of code will make is this: If a customer changes the number and clicks tab, or clicks the mouse anywhere else on the screen directly from the input field, it will also submit the form, the same as if they clicked enter, or clicked the refresh button itself.
#287
Posted 12 May 2012 - 09:33 PM
#288
Posted 13 May 2012 - 07:51 AM
I am trying to modify it according to the Points and Reward system.
I am stuck at the part where I need to modify checkout_process.php
I am stuck for the following modification and cannot find where to put the additional code in checkout.php
---------------------------------------------------------------------------------------------------
Find this.... (start at aprox. line no.134)
tep_db_perform(TABLE_ORDERS_TOTAL, $sql_data_array);
}
.. and add this after...
#### Points/Rewards Module V2.1beta balance customer points BOF ####
if ((USE_POINTS_SYSTEM == 'true') && (USE_REDEEM_SYSTEM == 'true')) {
// customer pending points added
if ($order->info['total'] > 0) {
$points_toadd = get_points_toadd($order);
$points_comment = 'TEXT_DEFAULT_COMMENT';
$points_type = 'SP';
if ((get_redemption_awards($customer_shopping_points_spending) == true) && ($points_toadd >0)) {
tep_add_pending_points($customer_id, $insert_id, $points_toadd, $points_comment, $points_type);
}
}
// customer referral points added
if ((tep_session_is_registered('customer_referral')) && (tep_not_null(USE_REFERRAL_SYSTEM))) {
$referral_twice_query = tep_db_query("select unique_id from " . TABLE_CUSTOMERS_POINTS_PENDING . " where orders_id = '". (int)$insert_id ."' and points_type = 'RF' limit 1");
if (!tep_db_num_rows($referral_twice_query)) {
$points_toadd = USE_REFERRAL_SYSTEM;
$points_comment = 'TEXT_DEFAULT_REFERRAL';
$points_type = 'RF';
tep_add_pending_points($customer_referral, $insert_id, $points_toadd, $points_comment, $points_type);
}
}
// customer shoppping points account balanced
if ($customer_shopping_points_spending) {
tep_redeemed_points($customer_id, $insert_id, $customer_shopping_points_spending);
}
}
#### Points/Rewards Module V2.1beta balance customer points EOF ####*/
---------------------------------------------------------------------------------------------------
#289
Posted 13 May 2012 - 08:12 AM
Also, I am having one more problem. In the checkout.php, it shows the summary of the cart. There if I have 5 items, then the remove icon is not scrolling. I get 5 remove icons which are comming out of the box. Have a look at the screenshot.
Running on Firefox
[img]http://i45.tinypic.com/14m9w1w.png[/img]
Edited by anam_funny, 13 May 2012 - 08:12 AM.
#290
Posted 13 May 2012 - 06:15 PM
I have edited the file to work with Points and Reward system. It is working but some more improvements are needed which I will take some more time.
Additions to language file of checkout.php will be needed as per the points and reward system instructions. All other steps remain the same.
Files covered from points and reward system installation instruction:
catalog/checkout_confirmation.php
catalog/checkout_payment.php
catalog/checkout_process.php
I was unable to make the code compatible with auto update when the "USE POINTS" box was checked, using AJAX. Still working on that.
Attached Files
#291
Posted 13 May 2012 - 07:34 PM
fulluvscents, on 12 May 2012 - 05:29 PM, said:
.on('change', 'input[name=shipping]', function(){$.post('checkout.php', 'shipping='+$(this).val()+'&comments='+$('textarea[name=comments]').val(), function(){window.location.href = unescape(window.location.pathname);});})
Add this before that line:
.on('change', 'input[name^=cart_quantity]', function(){$('form[name=cart_quantity]').submit();})
As written now, if a customer enters a new quantity and hits enter, it will automatically submit the change (without that line of code).
The difference that the extra line of code will make is this: If a customer changes the number and clicks tab, or clicks the mouse anywhere else on the screen directly from the input field, it will also submit the form, the same as if they clicked enter, or clicked the refresh button itself.
chemist4, on 12 May 2012 - 09:33 PM, said:
Regards!!
#292
Posted 14 May 2012 - 08:52 AM
.on('change', 'input[name=discount_code]', function(){$('form[name=cart_quantity]').submit();})
Regards!!
#293
Posted 14 May 2012 - 11:00 AM
And this code to show confirm dialog on delete product?
.on('click', '.cartDelete', function(){if (confirm('<?php echo CONFIRM_DELETE ;?>')) {$('form[name=cart_quantity]').submit();}else{return false;}})
Regards!
#294
Posted 17 May 2012 - 11:26 AM
Basicly when you create an account you fill all the information out and then when you then see the checkout page with your shopping cart the address
Shipping Address: and the Billing Address:
have only , in them however if i refresh the page then it fills them in, however if you update your cart the whole session is lost.
#295
Posted 17 May 2012 - 12:27 PM
Checkout.php
Line 583
from
if ('<?php echo $redirect;?>' == 'true') window.location='<?php echo tep_href_link(FILENAME_SHOPPING_CART);?>';
if ('<?php echo $cookie;?>' == 'true') window.location='<?php echo tep_href_link(FILENAME_COOKIE_USAGE);?>';
if ('<?php echo $refresh_checkout;?>' == 'true') window.location='<?php echo tep_href_link(FILENAME_CHECKOUT, '', 'SSL');?>';
if ('<?php echo $refresh_checkout_error;?>' == 'true') window.location='<?php echo $re_error;?>';
to
if ('<?php echo $redirect;?>' == '1') window.location='<?php echo tep_href_link(FILENAME_SHOPPING_CART);?>';
if ('<?php echo $cookie;?>' == '1') window.location='<?php echo tep_href_link(FILENAME_COOKIE_USAGE);?>';
if ('<?php echo $refresh_checkout;?>' == '1') window.location='<?php echo tep_href_link(FILENAME_CHECKOUT, '', 'SSL');?>';
if ('<?php echo $refresh_checkout_error;?>' == '1') window.location='<?php echo $re_error;?>';
#296
Posted 17 May 2012 - 12:33 PM
#297
Posted 18 May 2012 - 06:16 PM
#298
Posted 18 May 2012 - 07:46 PM
Timmy C
#299
Posted 19 May 2012 - 08:20 AM
luigicosta, on 09 May 2012 - 05:15 PM, said:
In any case, I found a bug
when buying something as a guest and select the payment method is out of this bad error.
http://simplecheckout.oscbyjetta.com/checkout.php
Fatal error: Can not redeclare class payment in / home/oscbyj5/public_html/simplecheckout/includes/classes/payment.php on line 13would be good to make a payment default?
I apologize if it has already been dealt with.
I report because I did not find any notes in add-ons
#300
Posted 20 May 2012 - 12:29 PM
I've installed the contribution and it seems working great.
I'd like to do some changes but I don't get them:
1 - I'd to pass directy from shopping cart to checkout page, including the account modules inside. it will reduce the numbers of click in the buying process. Someone know how to do that?
2 - when I add some item product in checkuot page and the "out of stock" error appears, it doesn't write the "out_of_stock_cant_checkout" message. how I can fix it?
3 - clicking on the buttons, the text is trasformed in uppercase style. how I can change it? I don't want to trasform it.
thank you very much!
riccardo










