mrblade
Forum Replies Created
-
ok thanks!
with this i have
UNCAUGHT ERROR: CALL TO A MEMBER FUNCTION GET_ITEMS()sorry, i am a newbie 🙂
thanks!Thanks for your reply :*
this is a part of the code for listing.php
<?php foreach ($user_orders as $order) { $the_order = new WC_Order( $order->order_id ); ?> <td class="dokan-order-id"> <?php echo '<a href="' . esc_url( wp_nonce_url( add_query_arg( array( 'order_id' => dokan_get_prop( $the_order, 'id' ) ), dokan_get_navigation_url( 'orders' ) ), 'dokan_view_order' ) ) . '"><strong>' . sprintf( __( 'Order %s', 'dokan-lite' ), esc_attr( $the_order->get_order_number() ) ) . '</strong></a>'; ?> </td>i would change number id with item title (or add this).
If i add in foreach
$product_item = new WC_Order_Item( $item->get_name ); and in echo
$product_item->get_name()
i have an error.
Can you help me?
Thanks!I discovered that the 404 error only appears when I have 0 published product. If I have at least one product it works.
Is it possible to solve with a simple notification?
exist a shortcode to show my products? thanks!Forum: Fixing WordPress
In reply to: Remove category prefixno solution in this link.
Is possibile change next and previous link? I try in wp-includes/link-template.php, on the row 513 i write user_trailingslashit( ‘?page=’ . $pagenum, ‘paged’ ); but when click on previous link return sito.com/mycategory/?page=2/?page=2%2F.
Where i wrong?