*

reflexus

  • ****
  • 146 posts
Re: Bug: send osp_email_promote not work
« Reply #15 on: October 30, 2017, 07:51:32 PM »
I am using php 7.1, no reason to have lower.

I can test it on 7.1

*

MB Themes

Re: Bug: send osp_email_promote not work
« Reply #16 on: October 30, 2017, 08:10:23 PM »
Does work just test mail or did you get mail after publish as well?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Carlos Carcamo

  • ****
  • 105 posts
  • LaKompra.com
Re: Bug: send osp_email_promote not work
« Reply #17 on: October 30, 2017, 10:15:17 PM »
Does work just test mail or did you get mail after publish as well?

Just work the test email, when i post a new ítem donot receive the promote email
LaKompra.com

*

reflexus

  • ****
  • 146 posts
Re: Bug: send osp_email_promote not work
« Reply #18 on: October 30, 2017, 10:23:07 PM »
I have found bug!  :D If you deactivate option "Pay for Republish" -> osp_email_promote function not work!) You can test it=)

If I activate "Pay for Republish" -> function works and i get email=)

But what if I do not want to use "Pay for Republish"?
« Last Edit: October 30, 2017, 10:46:43 PM by reflexus »

*

reflexus

  • ****
  • 146 posts
Re: Bug: send osp_email_promote not work
« Reply #19 on: October 30, 2017, 10:33:27 PM »
I have found bug!  :D If you deactivate option "Pay for Republish" -> osp_email_promote function not work!) You can test it=)

If I activate "Pay for Republish" -> function works and i get email=)


What?

Un the mean time se can ser display:none  un user.css

I do not understand you  :D

*

Carlos Carcamo

  • ****
  • 105 posts
  • LaKompra.com
Re: Bug: send osp_email_promote not work
« Reply #20 on: October 31, 2017, 05:19:38 AM »
I have found bug!  :D If you deactivate option "Pay for Republish" -> osp_email_promote function not work!) You can test it=)

If I activate "Pay for Republish" -> function works and i get email=)

But what if I do not want to use "Pay for Republish"?

Great, but is not my case I'm still receiving just the email from template emails on the admin console.
LaKompra.com

*

MB Themes

Re: Bug: send osp_email_promote not work
« Reply #21 on: October 31, 2017, 11:13:44 AM »
Ok I was doing some tests today and found one bug with counter (also reason why it works with republish enabled).

Go to file:
oc-content/plugins/osclass_pay/email.php

Find:
Code: [Select]
  foreach($types as $type) {
    $count = 0;

Replace with:
Code: [Select]
  $count = 0;
  foreach($types as $type) {
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Carlos Carcamo

  • ****
  • 105 posts
  • LaKompra.com
Re: Bug: send osp_email_promote not work
« Reply #22 on: October 31, 2017, 01:07:07 PM »
Ok I was doing some tests today and found one bug with counter (also reason why it works with republish enabled).

Go to file:
oc-content/plugins/osclass_pay/email.php

Find:
Code: [Select]
  foreach($types as $type) {
    $count = 0;

Replace with:
Code: [Select]
  $count = 0;
  foreach($types as $type) {

Great, now is working the plugin emails. Im just not receiving the debug email, and in my email I receive the next link

https://lakompra.com/index.php?page=custom&route=osp-item-pay&itemId=2026

But is not working. It is showing the same error, cart empty

Thank you again for your time
LaKompra.com

*

MB Themes

Re: Bug: send osp_email_promote not work
« Reply #23 on: October 31, 2017, 07:08:02 PM »
I remember I was fixing bug here for you. Do you remember what it was?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Carlos Carcamo

  • ****
  • 105 posts
  • LaKompra.com
Re: Bug: send osp_email_promote not work
« Reply #24 on: October 31, 2017, 07:16:01 PM »
I remember I was fixing bug here for you. Do you remember what it was?

Yes sir.

https://forums.mb-themes.com/osclass-pay-plugin/erro-not-recognized-()-when-publish-a-new-listing/


Code: [Select]
In file:
oc-content/plugins/osclass_pay/user/item_pay.php

There was:
Code: [Select]
<?

Should be:
Code: [Select]
<?php

This cause to 
break block to work on PHP 5.x

But I never found the <? on the item_pay.php in the original plugin files.

BTW.

I found another bug or minimum thing, let me show you the Fix

- Under the payment history if you move the mouse over the magnifying glass you will see details show up, but  if you paid a Pack, it is showing the members' group details, I fix the issues under the functions.php

Code: [Select]
else if($type == OSP_TYPE_PACK) {
      $pack = ModelOSP::newInstance()->getGroup($id);
      $pack_name = '<strong>' . (isset($pack['s_name']) ? osc_highlight($pack['s_name'], 30) : '#' . $id) . '</strong>';
      $title[] = sprintf(__('%sx Paquete %s (te damos %s, y solo pagas %s)'), $quantity, $pack_name, osp_format_price($pack['f_price'] + $pack['f_extra']), osp_format_price($pack['f_price']));

Change this:

Code: [Select]
$pack = ModelOSP::newInstance()->getGroup($id);
for this:

Code: [Select]
$pack = ModelOSP::newInstance()->getPack($id);
« Last Edit: October 31, 2017, 07:17:44 PM by Carlos Carcamo »
LaKompra.com

*

MB Themes

Re: Bug: send osp_email_promote not work
« Reply #25 on: October 31, 2017, 08:07:43 PM »
Thanks, nice one.
Can you PM me login to your FTP regarding issue with promote form?
I suppose you have some promotion options enabled.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Carlos Carcamo

  • ****
  • 105 posts
  • LaKompra.com
Re: Bug: send osp_email_promote not work
« Reply #26 on: October 31, 2017, 10:20:01 PM »
Thanks, nice one.
Can you PM me login to your FTP regarding issue with promote form?
I suppose you have some promotion options enabled.

I sent you my FTP info, thanks bro, maybe you can take a look about the debug email hehe
LaKompra.com

*

reflexus

  • ****
  • 146 posts
Re: Bug: send osp_email_promote not work
« Reply #27 on: October 31, 2017, 11:06:04 PM »
Ok I was doing some tests today and found one bug with counter (also reason why it works with republish enabled).

Go to file:
oc-content/plugins/osclass_pay/email.php

Find:
Code: [Select]
  foreach($types as $type) {
    $count = 0;

Replace with:
Code: [Select]
  $count = 0;
  foreach($types as $type) {

It works fine, thank you!

*

Carlos Carcamo

  • ****
  • 105 posts
  • LaKompra.com
Re: Bug: send osp_email_promote not work
« Reply #28 on: October 31, 2017, 11:34:51 PM »
It works fine, thank you!

Are you able to get all the emails now? when a new listing is published you receive one email about the promoted option, but can you open the link and see the cart with the listing ready to be paid?


Thanks
LaKompra.com

*

Carlos Carcamo

  • ****
  • 105 posts
  • LaKompra.com
Re: Bug: send osp_email_promote not work
« Reply #29 on: November 01, 2017, 03:10:12 PM »
Hey guys

Today I found that the osp_email_expired is not send automatically once the premium expired, Im just receiving the osp_email_promote but the custom link to the cart still not working.

My cron is working and sending the Alerts emails or Expiring emails
« Last Edit: November 01, 2017, 03:12:28 PM by Carlos Carcamo »
LaKompra.com