Project:Ubercart Marketplace
Version:6.x-1.0-beta1
Component:Code
Category:support request
Priority:normal
Assigned:solucioteca
Status:active

Issue Summary

Hi,
Sorry for my English, this is a direct translation of translate.google.
I've been looking online but can not find the answer. Need to change the url to continue shopping:

1163 - function uc_cart_continue_shopping_url($unset = TRUE) {
$url = '';

In my case should be:

$url='user/seller-uid/publicaciones/ofertas';

Can you helpme?

Comments

#1

Solution

Hi,The solution to the problem mentioned above is:

function uc_cart_continue_shopping_url($unset = TRUE){

Delete line 155

  • $url = '';

Add

  • $cid = $cid ? $cid : uc_cart_get_id();
  • $node = node_load($nid);
  • $citems = db_query("SELECT nid FROM {uc_cart_products} WHERE cart_id = '%s'", $cid);
  • $item_seller = $node->uid;
  • while ( $row = db_fetch_object($citems) ) {
  • $cart_seller = db_result(db_query("SELECT uid FROM {node} WHERE nid = %d", $row->nid));
  • }
  • $url = ('user/'.$cart_seller.'/venta/productos');