Post by mrfifagamer » Sun Nov 06, 2016 6:49 pm

Hello,

I need an experienced OpenCart developer to help me out with some issues I have on my website.

Please login on my website with the following details:
email: test@account.com
password: test123
Site URL: Www.fifafinity.com

1) I have the following xml modification installed, where if people buy a product , the reward points automatically get added.

Code: Select all

<?xml version="1.0" encoding="utf-8"?>

<modification>



	<id>Automatically Add Reward points when purchased</id>

	<version>200.1</version>

	<vqmver>2.5.1</vqmver>

	<author>Qphoria@gmail.com</author>

	

	<file name="catalog/controller/checkout/success.php">



		<operation info="auto add reward points">

            <search position="after"><![CDATA[

			$this->cart->clear();

            ]]></search>

            <add><![CDATA[

		$order_id = $this->session->data['order_id'];

		$description = 'Order ID: #' . $order_id;

		$customer_id = $this->customer->getId();

		$order_query = $this->db->query("SELECT SUM(reward) as reward FROM `" . DB_PREFIX . "order_product` WHERE order_id = '" . (int)$order_id . "'");

		$order_info = $order_query->row;

		$query = $this->db->query("SELECT COUNT(*) AS total FROM " . DB_PREFIX . "customer_reward WHERE order_id = '" . (int)$order_id . "'");

		$reward_total = $query->row['total'];

		if (!$reward_total && (int)$order_info['reward'] > 0) {

			$this->db->query("INSERT INTO " . DB_PREFIX . "customer_reward SET customer_id = '" . (int)$customer_id . "', order_id = '" . (int)$order_id . "', points = '" . (int)$order_info['reward'] . "', description = '" . $this->db->escape($description) . "', date_added = NOW()");

		}

			]]></add>

        </operation>

	</file>

</modification>





	
Now the problem is that when people use PayPal as payment method, they do not receive their reward points. I tested it with ''cash on delivery'' and it does work, please help me out!

2) All the orders made by paypal show up as 'MISSING ORDERS' in my admin panel

I am willing to pay if necessary to fix.
Last edited by mrfifagamer on Sun Nov 06, 2016 7:48 pm, edited 1 time in total.

New member

Posts

Joined
Sun Aug 23, 2015 6:34 pm

Post by IP_CAM » Sun Nov 06, 2016 7:47 pm

it makes rather little sense, to make multiple postings, but still forget to add a site url.
You should have better ONLY placed this in the commercial section, in the first place... :-\
Ernie

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by mrfifagamer » Sun Nov 06, 2016 7:50 pm

IP_CAM wrote:it makes rather little sense, to make multiple postings, but still forget to add a site url.
You should have better ONLY placed this in the commercial section, in the first place... :-\
Ernie
Hey, sorry for not mentioning the website link. The next time I will put it in the commercial section. I am not really looking for someone who can fix this, I am even willing to pay. I am really in a rush.. sorry

New member

Posts

Joined
Sun Aug 23, 2015 6:34 pm

Post by IP_CAM » Mon Nov 07, 2016 1:26 am

I cannot believe, that Qphoria really created a VqMod, exactly as it is shown in your Posting, but, anyway and however, if so, then, replace the VqMod Content with this one, and MAKE SURE, NEVER to copy/paste such Code by
use of a foolish Text Editor, or even MS-Word :D ,but use NOTEPAD ++, to do such !!! Just to mention this !
Ernie

Still, so far, you never even mentioned an OC Version yet... :-\

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<modification>
<id>Automatically Add Reward points when purchased</id>
<version>200.1</version>
<vqmver>2.5.1</vqmver>
<author>Qphoria@gmail.com</author>

<file name="catalog/controller/checkout/success.php">
<operation error="log">
<search position="after"><![CDATA[$this->cart->clear();]]></search>
<add><![CDATA[
	$order_id = $this->session->data['order_id'];
	$description = 'Order ID: #' . $order_id;
	$customer_id = $this->customer->getId();
	$order_query = $this->db->query("SELECT SUM(reward) as reward FROM `" . DB_PREFIX . "order_product` WHERE order_id = '" . (int)$order_id . "'");
	$order_info = $order_query->row;
	$query = $this->db->query("SELECT COUNT(*) AS total FROM " . DB_PREFIX . "customer_reward WHERE order_id = '" . (int)$order_id . "'");
	$reward_total = $query->row['total'];
	if (!$reward_total && (int)$order_info['reward'] > 0) {
	$this->db->query("INSERT INTO " . DB_PREFIX . "customer_reward SET customer_id = '" . (int)$customer_id . "', order_id = '" . (int)$order_id . "', points = '" . (int)$order_info['reward'] . "', description = '" . $this->db->escape($description) . "', date_added = NOW()");
	}
]]></add>
</operation>
</file>
</modification>

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by mrfifagamer » Tue Nov 08, 2016 3:30 am

IP_CAM wrote:I cannot believe, that Qphoria really created a VqMod, exactly as it is shown in your Posting, but, anyway and however, if so, then, replace the VqMod Content with this one, and MAKE SURE, NEVER to copy/paste such Code by
use of a foolish Text Editor, or even MS-Word :D ,but use NOTEPAD ++, to do such !!! Just to mention this !
Ernie

Still, so far, you never even mentioned an OC Version yet... :-\

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<modification>
<id>Automatically Add Reward points when purchased</id>
<version>200.1</version>
<vqmver>2.5.1</vqmver>
<author>Qphoria@gmail.com</author>

<file name="catalog/controller/checkout/success.php">
<operation error="log">
<search position="after"><![CDATA[$this->cart->clear();]]></search>
<add><![CDATA[
	$order_id = $this->session->data['order_id'];
	$description = 'Order ID: #' . $order_id;
	$customer_id = $this->customer->getId();
	$order_query = $this->db->query("SELECT SUM(reward) as reward FROM `" . DB_PREFIX . "order_product` WHERE order_id = '" . (int)$order_id . "'");
	$order_info = $order_query->row;
	$query = $this->db->query("SELECT COUNT(*) AS total FROM " . DB_PREFIX . "customer_reward WHERE order_id = '" . (int)$order_id . "'");
	$reward_total = $query->row['total'];
	if (!$reward_total && (int)$order_info['reward'] > 0) {
	$this->db->query("INSERT INTO " . DB_PREFIX . "customer_reward SET customer_id = '" . (int)$customer_id . "', order_id = '" . (int)$order_id . "', points = '" . (int)$order_info['reward'] . "', description = '" . $this->db->escape($description) . "', date_added = NOW()");
	}
]]></add>
</operation>
</file>
</modification>
Hey Ernie,

Thanks for the response! I'm running version 2.0.1.1 of OC. I'm getting an error when I try to buy something with PayPal, it doesn't redirect me back to the website and therefore the orders become as 'missing orders' and people don't receive their reward points too. Please check my other post in order to understand it: viewtopic.php?f=191&t=170143

I it a bad code because I paid Qphoria about $250 to make an OC website for me and now I'm facing so many errors and don't wants to spend another $100 to fix these bugs so hopefully someone can help me out!

Thanks!!

New member

Posts

Joined
Sun Aug 23, 2015 6:34 pm

Post by IP_CAM » Tue Nov 08, 2016 8:05 am

2.0.1.1 is probably not much better... :-\
but read this on PayPal Success Redirecting, one has to link this Function on the PayPal Account, to make it work!
Just in case ;)
viewtopic.php?f=185&t=170144&p=645624#p645624

Good Luck ;)
Ernie

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by mrfifagamer » Tue Nov 08, 2016 9:44 pm

IP_CAM wrote:2.0.1.1 is probably not much better... :-\
but read this on PayPal Success Redirecting, one has to link this Function on the PayPal Account, to make it work!
Just in case ;)
viewtopic.php?f=185&t=170144&p=645624#p645624

Good Luck ;)
Ernie
Hey Ernie,

Thank your for helping me through this process! I really appreciate it! Should I change my return-URL to: http://www.fifafinity.com/index.php?rou ... ut/success ?

Thanks for helping!

New member

Posts

Joined
Sun Aug 23, 2015 6:34 pm

Post by mrfifagamer » Tue Nov 08, 2016 10:05 pm

mrfifagamer wrote:
IP_CAM wrote:2.0.1.1 is probably not much better... :-\
but read this on PayPal Success Redirecting, one has to link this Function on the PayPal Account, to make it work!
Just in case ;)
viewtopic.php?f=185&t=170144&p=645624#p645624

Good Luck ;)
Ernie
Hey Ernie,

Thank your for helping me through this process! I really appreciate it! Should I change my return-URL to: http://www.fifafinity.com/index.php?rou ... ut/success ?

Thanks for helping!
Hey, I changed the return-URL and did another test order with my friend his paypal. I stil receive the error that we can't redirect back to the store site while I changed the return url to http://www.fifafinity.com/index.php?rou ... ut/success

Do you have Skype so we can communicate faster? Thanks

New member

Posts

Joined
Sun Aug 23, 2015 6:34 pm

Post by IP_CAM » Wed Nov 09, 2016 2:27 am

Well, sorry to tell you, I do NOT support OC-Users in any other way, but here at this forum. This way, I can leave, whenever I get the feeling, that it's of no use, to just waste time, and no-one then would have a reason to blame me for such... ;)

And when it comes to PayPal Payments, and proper setting, one would require to have an inside Look into your system and software anyway, to be able to find out. But before you try, to eventually get Dev support, just be warned, never to allow Server Access to Anyone, just hiding behind an annonymous eMail Account, and unable, to at least prove, to have a good Record and a PRO-Site.

Good Luck !
Ernie

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 2 guests