Jump to content

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

Disable Tabs in Order Detail Rate Topic   - - - - -

 
  • dextrous
  • Junior Member
  • Members
  • Join Date: 30-Oct 09
  • 16 posts

Posted 05 July 2013 - 04:45 AM #1

I'd like to disable Tabs on the Order Details page (see attached). I do not want to display Shipment Information.

I'd appreciate if anyone could advise as I can only see how to disable tabs in the Product Detail page, not Order Detail.

Thanks in advance.

Attached Thumbnails

  • Tabs_OrderDetails.jpg


 
  • shikhar
  • Senior Member
  • Members
  • Join Date: 09-Oct 11
  • 156 posts

Posted 07 July 2013 - 08:45 AM #2

There is a setting to disable that tab, I have done that for myself but can't locate it now.
Cs-cart tips at shikhar.me

 
  • Hungryweb
  • Senior Member
  • Authorized Reseller
  • Join Date: 10-Feb 12
  • 1275 posts

Posted 07 July 2013 - 09:24 AM #3

Hi @dextrous,

#on file controllers/customer/orders.php
replace:
if (Registry::get('settings.General.use_shipments') == 'Y') {

with:
if (Registry::get('settings.General.use_shipments') == 'Y' && 1==2) {

#on file skins/[SKIN_NAME]/customer/views/orders/details.tpl

replace:
{if $settings.General.use_shipments == "Y"}
with:
{if $settings.General.use_shipments == "Y" && 1==2}

[ Tested on CS-Cart v.3.0.6 Professional ]

I hope that helps,

---
Valentin

 
  • shikhar
  • Senior Member
  • Members
  • Join Date: 09-Oct 11
  • 156 posts

Posted 07 July 2013 - 09:29 AM #4

I remember now, simply uncheck
settings->General->Allow users to create shipments
Should work fine.
Cs-cart tips at shikhar.me

 
  • dextrous
  • Junior Member
  • Members
  • Join Date: 30-Oct 09
  • 16 posts

Posted 07 July 2013 - 10:00 AM #5

Thankfully deselecting the Create Shipment setting in Admin worked perfectly so the solution didn't require any code changes.

Thanks for your time and responses Valentine and Shikhar.

:grin: