Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11790
Latest: ButtKoWitz
New This Month: 3
New This Week: 0
New Today: 0
Stats
Total Posts: 41408
Total Topics: 7255
Most Online Today: 103
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 48
Total: 49

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

0 Members and 1 Guest are viewing this topic.

Offline KKOG

  • Community Suite Customer
  • Member
  • ******
  • 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: 15662
    • 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
  • Member
  • ******
  • 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: 15662
    • 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
  • Member
  • ******
  • 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: 15662
    • 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
  • Member
  • ******
  • 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
3716 Views
Last post November 18, 2007, 07:52:05 pm
by SMFHacks
0 Replies
3080 Views
Last post September 03, 2008, 02:14:05 pm
by MS7XWDC
5 Replies
4152 Views
Last post July 13, 2009, 10:44:30 pm
by SMFHacks
8 Replies
8926 Views
Last post December 23, 2013, 05:09:47 pm
by SMFHacks
0 Replies
1693 Views
Last post August 15, 2015, 01:45:02 pm
by hudumapoa

+- Recent Topics

Import downloads by mickjav
September 25, 2021, 04:47:13 am

Errors with 5.0.6 version by Hatshepsut
September 24, 2021, 10:21:24 pm

Forum ToolBox by mickjav
September 23, 2021, 03:20:07 pm

Ads Description is running into Ad Location by Shades
September 23, 2021, 09:56:42 am

S3 System For SMF Attachments by SMFHacks
September 21, 2021, 05:46:38 pm

Boards Icon by mickjav
September 18, 2021, 02:13:43 pm

Search Word Limit by SMFHacks
September 17, 2021, 08:41:01 pm

Item not appearing in category by SMFHacks
September 17, 2021, 08:39:45 pm

Undefined index: gallery_ad_seller by Shades
September 17, 2021, 01:23:10 pm

What happens if? by SMFHacks
September 14, 2021, 10:25:07 pm

Powered by EzPortal