Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Discount Code 5.3.2 phoenix in 1.0.7.9


bitit.it

Recommended Posts

ok Excuse me,  for stupid question .  in the installation instructions  is wrote:

2. Modify the includes/modules/checkout/after.php file.
--------------------------------------------------------------
2.1. FIND:

  include __DIR__ . '/update_stock.php';
  include __DIR__ . '/update_products_ordered.php';

ADD AFTER:

// Discount Codes
  include __DIR__ . '/update_discount_codes.php';
  
                          

but in the phoenix1.0.7.9  i haven't includes/modules/checkout/after.php file.

i have tried installations but in the order total amount, i haven' discount amount output

---------------

and for stripe payment, the file includes/modules/payment/stripe_sca.php  is really different form the file of Stripe SCA Payment module for Phoenix 1.0.7.9+

i can't find the string

// lets start with the email confirmation

maybe  the following  code to add is only for email confirmations  and isn't so important. but i  desire fix it.

code to add ( form instructions notes)

// lets start with the email confirmation

ADD BEFORE:

// Discount Codes
            if (defined('MODULE_ORDER_TOTAL_DISCOUNT_STATUS')
                    && strtolower(MODULE_ORDER_TOTAL_DISCOUNT_STATUS) == 'true'
                    && file_exists(DIR_FS_CATALOG . 'includes/hooks/shop/checkout_process/discount_code.php')) {
                global $OSCOM_Hooks;
                $OSCOM_Hooks->register('checkout_process');
                $OSCOM_Hooks->call('checkout_process', 'DiscountCodeStandardIpn');
            }

 

somebody have some tips about?

Enrico

Link to comment
Share on other sites

1. The support thread is this:

Discount Code BS

2. I answered your question already in your status update post:

 If you are on Phoenix 1.0.7.9 you should use stripe_sca_v1.1.0 and Discount_Codes_5.3.2_Phoenix.

Then you do not need to apply any modification. 

The instructions you posted are for earlier Stripe and Phoenix versions.

Edited by raiwa
Link to comment
Share on other sites

17 hours ago, raiwa said:

1. The support thread is this:

Discount Code BS

2. I answered your question already in your status update post:


 If you are on Phoenix 1.0.7.9 you should use stripe_sca_v1.1.0 and Discount_Codes_5.3.2_Phoenix.

Then you do not need to apply any modification. 

The instructions you posted are for earlier Stripe and Phoenix versions.

ok excuse me again i'll read the thread ,  but i have installed this module for stripe https://apps.oscommerce.com/EbCL1&stripe-v3-sca

and is different form your code.

in the core of 1.0.7.9  isn't present  this folder; in attachment  , the screen shot about .

includes/modules/checkout/

Screenshot_20201217_122547.png

Screenshot_20201217_123901.png

Link to comment
Share on other sites

@bitit.it Enrico,

I'm sorry, but I do not understand your problem.

Quote

 i have installed this module for stripe https://apps.oscommerce.com/EbCL1&stripe-v3-sca

and is different form your code.

This is the stripe module I'm referring to, and you should use the latest available version 1.0.7.9.

Then you can ignore the modification instructions included in the discount code and just use the stripe module as it is.

Link to comment
Share on other sites

40 minutes ago, raiwa said:

@bitit.it Enrico,

I'm sorry, but I do not understand your problem.

This is the stripe module I'm referring to, and you should use the latest available version 1.0.7.9.

Then you can ignore the modification instructions included in the discount code and just use the stripe module as it is.

i haven't output of the discount at total order at the end of checkout;  so i imagine have lost some part in the installations steps.

and i'm investigating about .. sorry

 

Link to comment
Share on other sites

49 minutes ago, bitit.it said:

i haven't output of the discount at total order at the end of checkout;  so i imagine have lost some part in the installations steps.

and i'm investigating about .. sorry

 

 

Screenshot_20201217_160416.jpg

Link to comment
Share on other sites

1 hour ago, bitit.it said:

i haven't output of the discount at total order at the end of checkout;

I would expect that to come from an order total module.  Have you looked at admin > Modules > Order Total to make sure that you have installed the module? 

Always back up before making changes.

Link to comment
Share on other sites

6 minutes ago, ecartz said:

I would expect that to come from an order total module.  Have you looked at admin > Modules > Order Total to make sure that you have installed the module? 

yes have done, but don't work . 

Screenshot_20201217_170221.png

Link to comment
Share on other sites

5 minutes ago, bitit.it said:

yes have done, but don't work . 

 

Miss something that i don't know .  this is the list of my hooks, maybe can be helpful

progress progress_hooks.php progressBar N/A
write css.php injectSiteEnd N/A
siteWide jQuery.php injectAfterFooter 3.5.1
siteWide bootStrap.php injectSiteStart 4.5.2
siteWide styleSheets.php injectSiteStart N/A
siteWide fontAwesome.php injectSiteStart 5.14.0
siteWide discountCode.php injectSiteStart N/A
siteWide bootStrap.php injectSiteEnd 4.5.2
siteWide MATC.php injectSiteEnd N/A
siteWide filterList.php injectSiteEnd N/A
siteWide MATC.php injectFormDisplay N/A
siteWide discountCode.php injectFormDisplay N/A
siteWide discountCode.php insertOrder N/A
siteWide noJs.php injectBodyWrapperStart N/A
checkout_process discount_code.php DiscountCodeStandardIpn N/A
checkout_process Checkout->validate_payment startApplication N/A
checkout_process Checkout->prepare_payment startApplication N/A
checkout_process checkout_surface->insert_order startApplication N/A
checkout_process pipeline_surface->after startApplication N/A
checkout_process checkout_surface->insert_history startApplication N/A
checkout_process Checkout->conclude_payment startApplication N/A
checkout_process pipeline_surface->reset startApplication N/A
checkout_process Checkout->redirect_success startApplication N/A
system application_surface->project_version startApplication N/A
system application_surface->request startApplication N/A
system application_surface->read_configuration startApplication N/A
system function_surface->general startApplication N/A
system function_surface->href_link startApplication N/A
system function_surface->image startApplication N/A
system function_surface->html_output startApplication N/A
system function_surface->sessions startApplication N/A
system application_surface->gzip startApplication N/A
system application_surface->start_session startApplication N/A
system Application->check_ssl_session_id startApplication N/A
system Application->check_user_agent startApplication N/A
system Application->check_ip startApplication N/A
system Application->ensure_session_cart startApplication N/A
system Application->set_session_language startApplication N/A
system Application->fix_numeric_locale startApplication N/A
system currencies->set_currency startApplication N/A
system Application->ensure_navigation_history startApplication N/A
system Loader->messageStack startApplication N/A
system Loader->customer_data startApplication N/A
system Application->set_customer_if_identified startApplication N/A
system application_surface->parse_actions startApplication N/A
system whos_online::update startApplication N/A
system function_surface->password_funcs startApplication N/A
system function_surface->validations startApplication N/A
system specials::expire startApplication N/A
system Loader->oscTemplate startApplication N/A
system application_surface->category_path startApplication N/A
system hooks->register_page startApplication N/A
checkout Checkout->register_stages checkoutStart N/A
checkout tep_require_login startApplication N/A
checkout Checkout->guarantee_cart startApplication N/A
checkout Loader->order startApplication N/A
checkout_confirmation_stage Checkout->require_login startApplication N/A
checkout_confirmation_stage Checkout->initialize_payment_module startApplication N/A
checkout_confirmation_stage Checkout->initialize_shipping_module startApplication N/A
checkout_confirmation_stage Checkout->update_payment_module startApplication N/A
checkout_confirmation_stage Checkout->set_order_totals startApplication N/A
checkout_shipping Checkout->guarantee_cart_id startApplication N/A
checkout_shipping Checkout->validate_sendto startApplication N/A
checkout_shipping Checkout->skip_shipping startApplication N/A
checkout_payment_stage Checkout->validate startApplication N/A
checkout_payment_stage checkout_surface->check_stock startApplication N/A
checkout_payment Checkout->validate_billto startApplication N/A
checkout_payment Checkout->initialize_payment_modules startApplication N/A
checkout_confirmation Checkout->guarantee_payment startApplication N/A
checkout_confirmation Checkout->preconfirm_payment startApplication N/A
checkout_shipping_address Checkout->skip_shipping startApplication N/A
after checkout_surface->update_stock afterStart N/A
after checkout_surface->update_products_ordered afterStart N/A
after checkout->notify afterStart N/A
reset checkout->reset_cart resetStart N/A
reset session_eraser->sendto resetStart N/A
reset session_eraser->billto resetStart N/A
reset session_eraser->shipping resetStart N/A
reset session_eraser->payment resetStart N/A
reset session_eraser->comments resetStart N/A
checkout_success cm_cs_product_notifications->process injectAppTop N/A
loginRequired tep_require_login loginRequiredStart N/A
Link to comment
Share on other sites

Set the sort order correct. The Discount CodeOrder Total module must be set after the Sub-Total Module.

See instructions:

Quote

Possibility A
Modules       Sort Order
Discount Code 2
Shipping      3
Sub-Total     1
Tax           4
Total         5

So in your case, Discount Code needs to be set at least to "11"

Edited by raiwa
Link to comment
Share on other sites

16 hours ago, raiwa said:

Set the sort order correct. The Discount CodeOrder Total module must be set after the Sub-Total Module. 

See instructions:

So in your case, Discount Code needs to be set at least to "11"

Yes, have try before, but i have the same problem!

Enrico

Link to comment
Share on other sites

Just to be sure, you have a discount set up, entered in checkout_payment.php and got it validated?

Link to comment
Share on other sites

You should have this:

image.png.331d1ff124fa698bad06a337c855be9f.png

and this:

image.png.5d809c639e4641e419a98bfab25de44a.png

 

Meanwhile:

51 minutes ago, bitit.it said:

Yes, have try before, but i have the same problem!

Please do not post screenshots with known wrong settings to avoid innecessary spending time.

Link to comment
Share on other sites

 

Quote

Please do not post screenshots with known wrong settings to avoid innecessary spending time.

Excuse me! :(

Ok i have removed all, starting from discount codes created, removed all part of plug-in of website (development side) and repeated the installation step by step another time, i believe the fourth time;   i have delete the customer from shop.
 i have  cleared all cookies from my browser,   created new discount code, created new customer; don't ask me why but now work .

I'll try to install also in live side now  for confirm .

Excuse me again
Enrico 

Link to comment
Share on other sites

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...