Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Print Company Data To Page Rate Topic   - - - - -

 
  • mumbomedia
  • Advanced Member
  • Members
  • Join Date: 13-Jan 17
  • 127 posts

Posted 12 October 2018 - 01:23 PM #21

It's only printing the domain now. The rest is blank. Even the companyname.

Oh wait...interesting.. [domain] IS working. The rest is not printing anything



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20053 posts

Posted 12 October 2018 - 01:33 PM #22

Please add to the end

{$cdata|fn_print_r}

and post here what do you see


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • mumbomedia
  • Advanced Member
  • Members
  • Join Date: 13-Jan 17
  • 127 posts

Posted 14 October 2018 - 12:09 PM #23

Please add to the end

{$cdata|fn_print_r}

and post here what do you see

 

 

Array
(
[company_id] => 11
[status] => A
[company] => *the name of the store*
[lang_code] =>
[address] =>
[city] =>
[state] =>
[country] =>
[zipcode] =>
[email] =>
[phone] =>
[fax] =>
[url] =>
[storefront] => *the website of the store*
[secure_storefront] => *the website of the store*
[entry_page] => none
[redirect_customer] => N
[countries_list] => Array
(
)

[timestamp] => 1502711971
[shippings] =>
[logos] =>
[request_user_id] => 0
[request_account_name] =>
[request_account_data] =>
[shippings_ids] => Array
(
)

)



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20053 posts

Posted 15 October 2018 - 05:44 AM #24

Not sure why, but for some reason company address is empty. Please make sure that it is specified correctly in the admin panel


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • mumbomedia
  • Advanced Member
  • Members
  • Join Date: 13-Jan 17
  • 127 posts

Posted 15 October 2018 - 06:35 PM #25

All the other fields are empty aswell, but everything IS filled in on the backend.
Can the procedure be somewhat diffrent for multi-store environments?



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20053 posts

Posted 16 October 2018 - 04:59 AM #26

All the other fields are empty aswell, but everything IS filled in on the backend.
Can the procedure be somewhat diffrent for multi-store environments?

 

The returned store name is correct?


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • mumbomedia
  • Advanced Member
  • Members
  • Join Date: 13-Jan 17
  • 127 posts

Posted 16 October 2018 - 07:41 AM #27

Yes, Storefront, secure storefront, and company is correct.



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20053 posts

Posted 16 October 2018 - 01:15 PM #28

I have no idea. It is required to examine the code


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • mumbomedia
  • Advanced Member
  • Members
  • Join Date: 13-Jan 17
  • 127 posts

Posted 19 October 2018 - 07:07 AM #29

Weird...have been trying tons of stuff, cannot get it to work.



 
  • mumbomedia
  • Advanced Member
  • Members
  • Join Date: 13-Jan 17
  • 127 posts

Posted 22 January 2020 - 02:13 PM #30

More then a year later and we've not managed to get this working. Anyone knows how to get this working or willing to do this for us?



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20053 posts

Posted 23 January 2020 - 05:35 AM #31

Try to use the following code get address

{$company_address = "SELECT address FROM ?:companies WHERE company_id = ?i"|db_get_field:$runtime.company_id}
{$company_address|fn_print_r}

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)