sultan97
Forum Replies Created
-
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Pdf file download error@pomegranate
I deactivate the plugin.
But the problem is exist!!!
In html mode we can see alls are perfectly shown.But some specific invoice is not download in pdf format.
Now adding &debug=true we can not see anything why its not download.If we add &output=html we can see invoice all information is nicely showing which is not generate in pdf format.
So how can I solve the issue???
Its not happen with all invoices but which have more items like 10 or above items & price also are high.
Please provide me a cause of error!!!
Again if I removed above code and try same invoice.
Its work!!!!So why this error face more items in invoice.
Not create problem the code adding for less items product????Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Pdf file download errorWarning: call_user_func_array() expects parameter 1 to be a valid callback, class ‘WP_Smart_Image_Resize\Admin’ does not have a method ‘quota_exceeding_soon’ in /var/www/vhosts/egyptvitamins.com/httpdocs/wp-includes/class-wp-hook.php on line 287
Warning: call_user_func_array() expects parameter 1 to be a valid callback, class ‘WP_Smart_Image_Resize\Admin’ does not have a method ‘quota_exceeded_notice’ in /var/www/vhosts/egyptvitamins.com/httpdocs/wp-includes/class-wp-hook.php on line 287
This error showing, when debug mode getting true.
For that reason some of my big invoice can not download.
How can I solve the error???
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Pdf file download error@pomegranate
https://pastebin.com/MF5zZbMgThis is the link where paste my custom template code.
Please look at this & send me a perfect solution.I am so tensed about that.
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Pdf file download error@alexmigf
Hi!!
You are not response about that.I am so tensed about that.
Provide me the solution .
ThanksForum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Pdf file download error@alexmigf
Please see here: https://pastebin.com/I already paste the custom template code mentioned your name in title
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Pdf file download error@alexmigf
I already paste my custom code in your link.
Please check it.Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Pdf file download error@alexmigf
<?php
$inv = \AtumMultiInventory\Models\Inventory::get_order_item_inventories( $item[‘item_id’] );
$inventory_id = $inv[0];
$inventory = \AtumMultiInventory\Inc\Helpers::get_inventory( $inventory_id->inventory_id );
$bbe = $inventory->bbe_date;
echo ‘<p class=”expiry_date” style=”font-weight:bold;”>Expiry date:’.$bbe.'<p\>’;
?>This is the code I used to retrive data from Atum plugin, which their direction to retrive data.
Its perfectly in less than 3 itmes invoice, not work more than.
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Pdf file download errorWarning: Use of undefined constant item_id – assumed ‘item_id’ (this will throw an Error in a future version of PHP) in
/var/www/vhosts/egyptvitamins.com/httpdocs/wp-content/themes/Divi/woocommerce/pdf/Custom-Simple/invoice.php
on line 111This is the error I can see in pdf.
But this is perfectly work less than 4 items in invoice.@pomegranate
[atum_mi_product_info product_id=”1″ data=”inventory_date, bbe_date, region, location, lot” with_labels=”no” no_info_message=”write your message here” date_format=”Y-m-d” class=”your-class”]This is the shortcode..
How can insert here product_id dynamically.Please provide me the shortcode with dynamic product_id with replacing static “1”.
Thanks
- This reply was modified 4 years, 4 months ago by sultan97.
@pomegranate
Yes!! Here is a way to add product id in this shortcode.
So,
How can generate product id for your plugin????@alexmigf
Hi!
Atum plugin show the bbe_date using shortcode called [atum_mi_product_info data=”bbe_date”]I am trying to show the bbe date in invoice using
do_shortcode(‘[atum_mi_product_info data=”bbe_date”]’);But, unfortunately its not showing the result.
Remember that, this shortcode work any woocommerce page.So, let me know how can I get the result of this shprtcode in this plugin!!!