Osclass Support Forums

Osclass plugin support => Virtual Products Plugin => Topic started by: NuCode on June 09, 2018, 09:11:49 PM

Title: Virtual Products Theme
Post by: NuCode on June 09, 2018, 09:11:49 PM
Hello can i suggest to build a theme for this plugin even if it's a modified ver of the existing theme so that this plugin will fit out of the box with a theme without of the need to modify a existing theme.

For example i like your way of displaying the downloads how can i achieve that

(https://i.imgur.com/Y7w8QlN.png)
(https://i.imgur.com/FIt7YM2.png)
(https://i.imgur.com/9DlLK04.png)
Title: Re: Virtual Products Theme
Post by: MB Themes on June 09, 2018, 10:21:49 PM
If you will spend hour to learn css basics, nothing like that is needed...
Title: Re: Virtual Products Theme
Post by: NuCode on June 10, 2018, 10:58:30 AM
I'm in the process of doing that so what is the actual call for download number i can see from your css that you added something like this
Code: [Select]
<a class="downloads tr1" title="Downloads" href="https://osclasspoint.com/user/downloads"><i class="fa fa-download"></i> <span class="counter">2</span></a>
But the counter part is missing as it reveals only the count already processed, so for example the alerts code it something like this

Code: [Select]
          <a class="alert tr1" title="<?php _e('Alerts''veronika'); ?>" href="<?php echo osc_user_alerts_url(); ?>"><i class="fa fa-bell-o"></i> <span class="counter"><?php echo (osc_is_web_user_logged_in() ? count(Alerts::newInstance()->findByUser(osc_logged_user_id())) : 0); ?></span></a>


How will be the virtual product call look like
Code: [Select]
[b] <?php echo osc_user_alerts_url(); ?>[/b]   and
Code: [Select]
[b]<span class="counter"><?php echo (osc_is_web_user_logged_in() ? count(Alerts::newInstance()->findByUser(osc_logged_user_id())) : 0); ?></span></a>[/b]
Title: Re: Virtual Products Theme
Post by: MB Themes on June 10, 2018, 01:11:54 PM
On osclasspoint virtual products plugin is not used.
Title: Re: Virtual Products Theme
Post by: NuCode on June 10, 2018, 02:16:31 PM
Hi, what do you mean is not used when on your shop i see you have the counter working, i mean there is no function to call how many downloads a user have, i can see you have for your shop and i assume you use the same plugin.


Also when i install the plugin and set the Hook to be inserted there is no css for it is just a plain text link

Can you give me a css code for the download link for stela theme i see osclass pay have one when the hook is enabled
Title: Re: Virtual Products Theme
Post by: MB Themes on June 10, 2018, 09:04:37 PM
You can copy css from any button you like and apply it on downloads button. We have decided not to format plugin links anymore and let final styling/customization on end user.