Jump to content

 

tbirnseth

Member Since 08 Nov 2008
Offline Last Active May 02 2022 02:11 AM
*****

#345728 How To Display Error Massage While Uploading Csv At The Backend. If We Entere...

Posted by tbirnseth on 28 January 2022 - 06:45 PM

It would be most helpful to all if csc would simply log the results of imports including successful rows and failed rows (and why).




#345684 Bcc Order Department E-Mail Address For All Supplier Notifications?

Posted by tbirnseth on 27 January 2022 - 11:57 PM

Here's a hook function you can use/modify to suit your needs:

function fn_[ADDON]_mailer_send_pre(&$mObj, &$transport, &$message, $area, $lang_code) {
  $params = $message->getData();
  $order_info = empty($params['order_info']) ? array() : $params['order_info'];
  $toAR = $message->getTo();
  $to = implode(',', array_keys($toAR));
 
  // If no $to OR no email in order_info OR 'email' does not contain $to
  // This should only BCC on order emails sent to customer
  if( empty($to) 
    || empty($order_info['email']) 
    || (strpos($order_info['email'], $to) === false)
  )
    return;
 
  // Set your conditions here.  I.e. has a parent_order_id, etc.
  if( $bcc = function_to_get_your_bcc_addresses() ) {  // Get the bcc address to use
  $_bcc = explode(',', $bcc);  // Split if mulitple
  foreach($_bcc as $addr) {
     if( !$addr )
      continue;
    $message->addBCC(trim($addr));
  }
  $params['Bcc'] = $bcc;
}
 



#345581 How Product Link Stored In Database?

Posted by tbirnseth on 24 January 2022 - 08:55 PM

If you review the code in fn_images.php for the function fn_attach_absolute_image_paths(), in the 'functions' directory it will answer your question(s).  The numeric values are the result of the image_id / MAX_FILES_IN_DIR site constant.




#345504 Sku/product Code

Posted by tbirnseth on 21 January 2022 - 10:32 PM

I have a script that will let you import new product codes if you've exported the product_id.  Contact me via the link in my signature to purchase.




#345503 Cscart Fails To Copy Files From /var/themes_Repository To Working Dir

Posted by tbirnseth on 21 January 2022 - 10:28 PM

Most likely it is a permissions problem.  Ensure the owner/group ownerships/permissions are appropriate for your site.




#343581 Internal Server 500 Error When Uploading Product Image

Posted by tbirnseth on 03 November 2021 - 05:39 PM

Quick Google gives you the answer: https://www.howtofor...s-maxrequestlen




#343556 Get Vendor Plan From Order Using Api

Posted by tbirnseth on 02 November 2021 - 07:48 PM

The way things work, the order (as @ecom states)  has a plan-id within the order.  This id is used to reference the "current" plan and from that you can get the commission amount (percent or value).  However, if the "plan" has changed, an older order may reference an inaccurate commission  amount and other details.

 

If one assumes that an order IS the contract between buyer, seller and merchant, then the commission amounts used SHOULD BE within the order.

 

A little history: In early cs-cart 2.0, products were "referenced" from the orders and as prices changed, caused significant confusion about what was bought when and for what amount.  They then started including product data within the order as it existed at the time of order.




#343138 Security Issues

Posted by tbirnseth on 14 October 2021 - 09:21 PM

 

Hi!

 

If you have a Multi Vendor Edition and want to use the automatic revenue sharing between the vendors, then in CS Cart (for European users) only Stripe Connect remains?! Which then has the consequence of not being PCI compliant, right?
 
Best regards
hummer

 

 

As I briefly looked at the stripe code, it appears that it is compliant.  I.e. it tokenizes that actual card number so what's stored is an encrypted form of the card that can't be decoded by anyone other than stripe (trying to put it in simple terms).

 

This question would best be answered by the cs-cart development team or the helpdesk.




#343082 Replace Item Name To Pruduct Id In Paypal Payment (Cs-Cart 4.13)

Posted by tbirnseth on 11 October 2021 - 08:41 PM

It would require a customization to append the product_code to the product description (or to replace it).  Providing an example of what you have and what you want would be helpful.




#342404 Give Vendor Selective Permission To View A Document

Posted by tbirnseth on 14 September 2021 - 06:33 PM

@tbirnseth thanks for the help so far :-)

 

Oke. I have managed to do what I wanted. I have one last question though about payouts. Why is the order_id in the vendor_payouts sql table 0? Shouldn't it correspond to an actual order from the orders sql table? I'd like to use that in order to determine if a user has access to the order. The only way I can tell that a payout is linked to a order is by the comment... which is not that good.

Sorry, I have no idea.  All entries in my development DB with order_id == 0 are for payouts.




#342157 Stripe Connect For Vendors

Posted by tbirnseth on 02 September 2021 - 07:20 PM

What do yo do when you have an order from multiple vendors and only one of them is a strip user?

Seems like it would make most sense to only have one credit card payment method and that being Stripe.




#341902 Search "for" Vendors!

Posted by tbirnseth on 23 August 2021 - 06:54 PM

You would need to extend the search functionality to look explicitly for a match within company names.  If you are wanting this to be an exclusive search if a match, it ca easily be done in a hook.  If you are wanting it to match a company as well as any product then it can still be done, but the search query would need to be extended to include cscart_companies and so a match on 'company'.




#341011 How To Refresh Addon Missing Text?

Posted by tbirnseth on 18 July 2021 - 06:47 PM

You can uninstall/reinstall it (but any accumulated data may be lost).  Or you can have 'DEVELOPMENT' defined and then you should see a 'Refresh' option available on the Addon status drop-down.




#339248 Valid Coupon And "no Such Coupon" Message

Posted by tbirnseth on 12 May 2021 - 06:51 PM

Can you recreate your problem on the demo site?  If not, you might have a 3rd party addon that is doing something with promotions.




#338463 Countdown Timer

Posted by tbirnseth on 13 April 2021 - 10:36 PM

Easiest is to just point you to a reference: https://www.w3school...s_countdown.asp
You'll need to create a block where you want the timer with html similar to:

<div id="my_timer">
</div>

and you would (using the javascript from the link) do:

 document.getElementById("demo").innerHTML = days + "d " + hours + "h "

Using jQuerey is probably easier and cleaner....