Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 12406
Latest: Lavoipa
New This Month: 5
New This Week: 1
New Today: 0
Stats
Total Posts: 40741
Total Topics: 7144
Most Online Today: 31
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 20
Total: 20

Author Topic: Another error using the Alternative PayPall Address  (Read 159 times)

0 Members and 1 Guest are viewing this topic.

Offline KKOG

  • Community Suite Customer
  • Newbie
  • ******
  • Posts: 38
    • View Profile
Another error using the Alternative PayPall Address
« on: February 01, 2021, 05:37:51 am »
Hi,

I have found another bug in the store software when using the Alternative PayPal Address to force a "Buy Now" option.

Using this option applies a Shipping Condition where the condition is based on Weight criteria even though the "Requires Shipping" option has not been ticked.  I have applied the previous workaround that overcomes the application of a Shipping Condition which s based on a $ or cost condition.

To overcome this we have had to revert back to the use of the cart.

Regards
Greg Ralph
KKOG Forum Admin

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15356
    • View Profile
Re: Another error using the Alternative PayPall Address
« Reply #1 on: February 01, 2021, 01:16:54 pm »
Try this hotfix
Open Sources/Store2.php
In function CreatePayPalButton($basketid)
Find
Code: [Select]
// Lookup the item information

$dbresult = $smcFunc['db_query']('', "
SELECT
subscribe_cycle_times, subscribe_cycle_duration, subscribe_cycle_type,
second_paypal, productname
FROM {db_prefix}store_item
WHERE ID_ITEM = " . $cartRow['ID_ITEM'] );
$itemRow = $smcFunc['db_fetch_assoc']($dbresult);
$smcFunc['db_free_result']($dbresult);

if (!empty($itemRow['second_paypal']))
$business = $itemRow['second_paypal'];

Change to

Code: [Select]
// Lookup the item information

$dbresult = $smcFunc['db_query']('', "
SELECT
subscribe_cycle_times, subscribe_cycle_duration, subscribe_cycle_type,
second_paypal, productname, requireshipping
FROM {db_prefix}store_item
WHERE ID_ITEM = " . $cartRow['ID_ITEM'] );
$itemRow = $smcFunc['db_fetch_assoc']($dbresult);
$smcFunc['db_free_result']($dbresult);

if (!empty($itemRow['second_paypal']))
$business = $itemRow['second_paypal'];

if ($itemRow['requireshipping'] == 0)
$basketRow['totalshipping'] = 0;
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline KKOG

  • Community Suite Customer
  • Newbie
  • ******
  • Posts: 38
    • View Profile
Re: Another error using the Alternative PayPall Address
« Reply #2 on: February 01, 2021, 05:52:06 pm »
Hi,

Thanks for the hotfix.

Will this be added to a new release of the Store system?

Another workaround was to set the weight criteria to be between 0.01kg and 5.00kg instead of between 0.0kg and 5.0kg.

Cheers
Greg Ralph
KKOG Forum Admin

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15356
    • View Profile
Re: Another error using the Alternative PayPall Address
« Reply #3 on: February 01, 2021, 06:33:54 pm »
Yes it will be if it works for you.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline KKOG

  • Community Suite Customer
  • Newbie
  • ******
  • Posts: 38
    • View Profile
Re: Another error using the Alternative PayPall Address
« Reply #4 on: February 01, 2021, 06:51:24 pm »
Have tested the Hotfix with weight condition starting with 0 and the shipping condition value is still added to the price on "Buy Now" using alternate PayPal address

Cheers
Greg

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15356
    • View Profile
Re: Another error using the Alternative PayPall Address
« Reply #5 on: February 01, 2021, 07:08:45 pm »
Can you take a screenshot of your shipping settings and your item settings that has this issue.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline KKOG

  • Community Suite Customer
  • Newbie
  • ******
  • Posts: 38
    • View Profile
Re: Another error using the Alternative PayPall Address
« Reply #6 on: February 01, 2021, 07:33:04 pm »
Hi,

Attached is the screenshot

[ Guests cannot view attachments ]

The offending condition is the between 0.00 and 5.00 kgs condition

Cheers

BTW what is the image attachment mod that you are using?
« Last Edit: February 01, 2021, 07:35:09 pm by KKOG »

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
3657 Views
Last post November 18, 2007, 07:52:05 pm
by SMFHacks
0 Replies
2985 Views
Last post September 03, 2008, 02:14:05 pm
by MS7XWDC
5 Replies
4042 Views
Last post July 13, 2009, 10:44:30 pm
by SMFHacks
8 Replies
8831 Views
Last post December 23, 2013, 05:09:47 pm
by SMFHacks
0 Replies
1631 Views
Last post August 15, 2015, 01:45:02 pm
by hudumapoa

+- Recent Topics

Forum ToolBox by Monocero
February 25, 2021, 04:07:34 am

How to I copy SMF Gallery to a new host? by SMFHacks
February 21, 2021, 09:14:12 am

[Mod]Discord Who's Online by SMFHacks
February 15, 2021, 11:02:21 am

Gallery Pro 3.0.25 to Current by SMFHacks
February 08, 2021, 09:10:24 am

A new error with 5.0.4 by SMFHacks
February 06, 2021, 09:32:21 am

Some errors in the log (low priority) by SMFHacks
February 05, 2021, 08:52:51 am

Ad Seller error in the log by Vincent Volmer
February 04, 2021, 02:37:54 am

Another error using the Alternative PayPall Address by KKOG
February 01, 2021, 07:33:04 pm

SMF 2.0.18 Released by SMFHacks
February 01, 2021, 04:36:48 pm

website locked up after trying to uninstall 9.0 beta by SMFHacks
February 01, 2021, 12:41:59 pm

Powered by EzPortal