Cannot show invoices in frontend [CLOSED]

6 months 2 weeks ago #335367 by agaudin
Cannot show invoices in frontend was created by agaudin
Hello

I have two websites using CBSubs. On one of them, people can display their invoices from their frontend profile :
 
--> There is a clickable link to display it

But on the other one this link is missing :
 

As far as I can see, both sites have same settings in CBSubs general settings. I am certainly missing something but I cannot see what... any idea ?

Best regards
Antoine
Attachments:

Please Log in to join the conversation.

6 months 2 weeks ago #335369 by krileon
Replied by krileon on topic Cannot show invoices in frontend
The invoice page always has links. The payments page however only has links if invoices are set to display. Within CBSubs > Settings > Display > Invoices ensure "Show invoices" is set to "Yes".


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

6 months 2 weeks ago #335372 by agaudin
Replied by agaudin on topic Cannot show invoices in frontend
Thanx for your anwer, but unfortunatly : it is already set as "display = yes"
   

That's why I don't get it doesn't work...

Any other idea ?

Regards

Antoine
Attachments:

Please Log in to join the conversation.

6 months 2 weeks ago - 6 months 2 weeks ago #335376 by agaudin
Replied by agaudin on topic Cannot show invoices in frontend
Hello

I had the idea to check html code of both pages :

On broken website the code for the link seems to be there but it doesn't show because the a link content is empty - could it come from a translation ?
<td class="text-wrap cbsubsInvoicesItem">
<a onclick="window.open( 'https://congresannuel.upbm.org/index.php?option=com_comprofiler&amp;view=pluginclass&amp;user=1392&amp;plugin=cbpaidsubscriptions&amp;cbpact=showinvoice&amp;cbpinvoice=697&amp;tmpl=component', 'cbinvoice', 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no' ); return false;" target="_blank" href="https://congresannuel.upbm.org/index.php?option=com_comprofiler&amp;view=pluginclass&amp;user=1392&amp;plugin=cbpaidsubscriptions&amp;cbpact=showinvoice&amp;cbpinvoice=697&amp;tmpl=component" class="cbregInvoiceLink"></a>
<div class="text-small text-muted">
                            <span class="cbTooltip" data-cbtooltip-tooltip="Invoice Number" data-cbtooltip-simple="true" data-hasqtip="1">Facture-StJBraye-2</span>                        </div>
</td>

on working website :
<td class="text-wrap cbsubsInvoicesItem">
<a onclick="window.open( 'https://upbm.org/index.php?option=com_comprofiler&amp;view=pluginclass&amp;user=229&amp;plugin=cbpaidsubscriptions&amp;cbpact=showinvoice&amp;cbpinvoice=1283&amp;tmpl=component', 'cbinvoice', 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no' ); return false;" target="_blank" href="https://upbm.org/index.php?option=com_comprofiler&amp;view=pluginclass&amp;user=229&amp;plugin=cbpaidsubscriptions&amp;cbpact=showinvoice&amp;cbpinvoice=1283&amp;tmpl=component" class="cbregInvoiceLink">adhésion pour Antoine GAUDIN</a>                                                <div class="text-small text-muted">
                            <span class="cbTooltip" data-cbtooltip-tooltip="Invoice Number" data-cbtooltip-simple="true" data-hasqtip="1">R-2023-01-03-229</span>                        </div>
                                            </td>


Why the link is empty ? Any idea ?

Best regards
Antoine

Please Log in to join the conversation.

6 months 2 weeks ago #335378 by krileon
Replied by krileon on topic Cannot show invoices in frontend
Strange, that should be item_name, which is determined by "Payment basket item text" parameter in CBSubs > Settings > Display > Baskets. The default should be the following.

[ITEMS_ALIASES] for [USERNAME]

Try editing and re-saving your CBSubs > Settings if this is already been set as maybe your settings haven't been saved yet. Next within CBSubs > Baskets make sure the "Items" column has a value as that should be what item_name is for the basket. If it doesn't then your baskets were not generating item_name and the only fix is to fix that in the database table _cbsubs_payment_baskets.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: agaudin

Please Log in to join the conversation.

6 months 2 weeks ago - 6 months 2 weeks ago #335382 by agaudin
Replied by agaudin on topic Cannot show invoices in frontend [CLOSED]
Thanx a lot, as usual you got it. The "Items" column in CBSubs > Baskets has no value - probbalye my fault when I tried to rearrange the "Payment basket item text" parameter in CBSubs > Settings > Display > Baskets.
I now know where it coms from and will try to refix it.

EDIT : I tried by adding a word (like "SEE") in item_name column of _cbsubs_payment_basket ad it fixed it.  Thanks again !!

Best regards

Antoine.
The following user(s) said Thank You: krileon

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.219 seconds

Facebook Twitter LinkedIn