Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Changing trigger for product review requests

 
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 11-19-2019, 11:34 AM
 
welly welly is offline
 

eXpert
  
Join Date: Mar 2011
Location: UK
Posts: 209
 

Default Changing trigger for product review requests

Hi

I have the Product Review module installed, and I would like to send review reminders. The triggers for sending the reminders are a payment status of 'Paid' and an order status of 'Delivered', but they don't really work for me.

Firstly, my payment statuses can be 'Paid' or 'Authorised' depending on which gateway a customer uses, and I don't bother to change it at the moment (no doubt I could if necessary).

Secondly, and more importantly, I don't use the 'Delivered' status, as I don't use trackable or signed delivery services most of the time and can't make that judgement. I just leave the status as 'Shipped'.

As a result, no reminders are ever sent.

Is there a way to change the reminder to trigger on an order status of 'Shipped' instead, and (less important) to ignore the payment status?

Has anyone done anything similar?

Many thanks

Welly
__________________
X-Cart Business 5.3.6
Various add-ons

www.traininglines.co.uk
Reply With Quote
  #2  
Old 11-26-2019, 04:44 PM
 
siddharth.puri@wheelandba siddharth.puri@wheelandba is offline
 

Advanced Member
  
Join Date: Nov 2019
Posts: 59
 

Default Re: Changing trigger for product review requests

Hi Welly, I am facing the same problem. I change the payment status to paid however the shipping status to shipped. I want the module to ignore the delivery status. Please let me know if you find a solution to this.

Thanks and Regards
Sid
__________________
Version 5.3.6.1
Reply With Quote
  #3  
Old 12-04-2019, 05:22 PM
 
siddharth.puri@wheelandba siddharth.puri@wheelandba is offline
 

Advanced Member
  
Join Date: Nov 2019
Posts: 59
 

Default Re: Changing trigger for product review requests

Hi, I think I have figured it out.
In Review module that is:

classes\XLite\Module\XC\Reviews\Model there is a function protected function isOrderValidForReviewKey()
{
return !$this->getReviewKey()
&& \XLite\Model\Order\Status\Payment::STATUS_PAID === $this->getPaymentStatusCode()
&& (
\XLite\Model\Order\Status\Shipping::STATUS_DELIVER ED === $this->getShippingStatusCode()
|| !$this->isShippable()
);
}

In this take out the condition of Status_Paid

Hopefully that will work

Regards
__________________
Version 5.3.6.1
Reply With Quote
  #4  
Old 02-27-2020, 06:39 PM
 
siddharth.puri@wheelandba siddharth.puri@wheelandba is offline
 

Advanced Member
  
Join Date: Nov 2019
Posts: 59
 

Default Re: Changing trigger for product review requests

In httpdocs\classes\XLite\Module\XC\Reviews\Model\ord er.php there is a function
protected function isOrderValidForReviewKey()
{
return !$this->getReviewKey()
&& \XLite\Model\Order\Status\Payment::STATUS_PAID === $this->getPaymentStatusCode()
&& (
\XLite\Model\Order\Status\Shipping::STATUS_DELIVER ED === $this->getShippingStatusCode()
|| !$this->isShippable()
);
}

Change status of delivered to shipping and also add payment status for authorised and paid both



Also, in httpdocs\classes\XLite\Module\XC\Reviews\Model\Ord er\Status
Set status handler for shipped the same those are added for delivered
__________________
Version 5.3.6.1
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:48 AM.

   

 
X-Cart forums © 2001-2020