This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

dsf

  • *****
  • 261 posts
Renew feature
« on: May 06, 2021, 09:18:38 AM »
Hello.

Last weekend i upgraded from 3.9 to 4.4, all went well. Great update, i must say.

I have one issue. It seems that no renew email is send out. To test this, i created a demo account, made a short period category and waited. Until today, i got no email. While the ad expires on 9th and i have set it to email 7 days before, i got nothing.

CRON runs great, no issues there.
 
Is there a way to LOG each renew email send or some info about the renew function when run? Or debug this somehow?

Thanks
« Last Edit: May 06, 2021, 09:31:29 AM by dsf »

*

MB Themes

Re: Renew feature
« Reply #1 on: May 06, 2021, 02:00:59 PM »
Are you using built-in osclass solution? Do you have mail template created?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

dsf

  • *****
  • 261 posts
Re: Renew feature
« Reply #2 on: May 06, 2021, 03:46:32 PM »
Hello.

Just got the email to renew!!.

Still i can't find a way to renew it.

Yes i use the build in function. NO i have nothing created. If there any guide on what i must do?

Many thanks !

*

MB Themes

Re: Renew feature
« Reply #3 on: May 06, 2021, 03:58:57 PM »
@dsf
Basically you must have email template created I think. If you check installation files.
Code: [Select]
INSERT INTO /*TABLE_PREFIX*/t_pages (pk_i_id, s_internal_name, b_indelible, dt_pub_date) VALUES (22, 'email_warn_expiration', 1, NOW() );
INSERT INTO /*TABLE_PREFIX*/t_pages_description (fk_i_pages_id, fk_c_locale_code, s_title, s_text) VALUES (22, 'en_US', '{WEB_TITLE} - Your ad is about to expire', '<p>Hi {USER_NAME},</p><p>Your listing <a href="{ITEM_URL}">{ITEM_TITLE}</a> is about to expire at {WEB_LINK}.');

/*TABLE_PREFIX*/ Should be changed to your prefix (in config.php) and run on database.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

dsf

  • *****
  • 261 posts
Re: Renew feature
« Reply #4 on: May 06, 2021, 04:03:49 PM »
What i have is:


email_warn_expiration    {WEB_TITLE} - Your ad is about to expire


If you mean that, yes i have it. But HOW do i renew?

Marked as best answer by frosticek on May 06, 2021, 06:46:09 PM
*

MB Themes

Re: Renew feature
« Reply #5 on: May 06, 2021, 04:14:39 PM »
@dsf
In user account, check sigma theme for reference
Code: [Select]
            <?php if(osc_item_can_renew()) { ?>
              <a href="<?php echo osc_item_renew_url();?>" ><?php _e('Renew''sigma'); ?></a>
            <?php ?>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

dsf

  • *****
  • 261 posts
Re: Renew feature
« Reply #6 on: May 06, 2021, 04:22:04 PM »
ok, does the link in MY ACCOUNT appears AFTER the expiration date or when the email is send to the user?

I mean if the email is sent 2 days before the expiration, when that link is appearing?

Or it is there ALWAYS? because right now i seen no such option with Sigma.

*

dsf

  • *****
  • 261 posts
Re: Renew feature
« Reply #7 on: May 06, 2021, 04:36:41 PM »
Ok, i see this is an issue with OsclassWizards theme i use. With Sigma it shows ok.

I will see if i can modify our theme, to work with this, following Sigma example. I'm not a coder, but i think i can do that.

If not, we will see ..

many thanks

*

MB Themes

Re: Renew feature
« Reply #8 on: May 06, 2021, 04:36:55 PM »
@dsf
Listing can be renewed once it is expired.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

dsf

  • *****
  • 261 posts
Re: Renew feature
« Reply #9 on: May 06, 2021, 06:36:50 PM »
I was able to resolve this by looking at the Sigma example you told me to.

MANY thanks, appreciated.

*

MB Themes

Re: Renew feature
« Reply #10 on: May 06, 2021, 06:45:57 PM »
No problem, do you mean adding link to user items right?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

dsf

  • *****
  • 261 posts
Re: Renew feature
« Reply #11 on: May 06, 2021, 07:05:24 PM »
No problem, do you mean adding link to user items right?

Yes. adding a Renew, next to Edit Item and Delete.

I was able to modify my theme, accordingly to Sigma code. With a little change since the files are named differently.

*

MB Themes

Re: Renew feature
« Reply #12 on: May 06, 2021, 07:12:55 PM »
Cool, thanks for details  :)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

dsf

  • *****
  • 261 posts
Re: Renew feature
« Reply #13 on: May 06, 2021, 07:14:27 PM »
If anyone is interested and uses OsclassWizard theme, here is how to ADD Renew:

Add to loop-user-list.php file the following code, around line 190 (approximatelly since i have many changes done myself to the code):

Code: [Select]

<?php if(osc_item_can_renew()) { ?>
<span>|</span>
<a href="<?php echo osc_item_renew_url();?>" ><?php _e('Renew'OSCLASSWIZARDS_THEME_FOLDER); ?></a>
<?php ?>

Also do this to the loop-user-grid.php.
« Last Edit: May 06, 2021, 07:18:54 PM by dsf »

*

dsf

  • *****
  • 261 posts
Re: Renew feature
« Reply #14 on: May 08, 2021, 04:55:44 PM »
Hello.

I was informed by some users that the Renew option leads to a 404 page. I was able to verify this, while Edit and Delete work very well.

Then i switched from my Theme to the default of yours. And same thing happened.

ANY ideas why a 404 is appearing? In my stage test it worked right. And the "link" of Renew looks right.

ANY ideas or hints would help on what to look for.

Many thanks