Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Get rid of provider & quantity lines

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-30-2004, 09:11 PM
 
miss_beth miss_beth is offline
 

Advanced Member
  
Join Date: Dec 2003
Posts: 84
 

Default Get rid of provider & quantity lines

Almost ready to go live and noticed that when a customer checks their order history, there is a line that says provider (a.k.a. the user name of the person that entered the product in the database):

Quote:
Product info

Star Shine Necklace & Earrings #16724
SKU SKU2178
Provider master
Price $ 43.00
Quantity 1 item(s)
Components Selected Item: Earrings

Star Shine Necklace & Earrings #16724
SKU SKU2178
Provider master
Price $ 115.00
Quantity 1 item(s)
Components Selected Item: Both Pieces

Order info


Payment Method Phone Ordering

Now, obviously it looks silly to have the word master written on the product description but it'll look far sillier when someone buys something that my daughter entered and says "sissy" or one that one of my other helpers entered that says "idontcare" because he couldn't think of a user name.

Can someone tell me where/how to remove that line totally? I'd also like to remove the line that says Quantity 1 item(s).

~Beth
__________________
X-Cart version 3.5.6
PHP 4.3.4
MySQL server 3.23.56
MySQL client 3.23.49
Web server Apache/1.3.31 (Unix)
Operation system Linux
Perl 5.008
Reply With Quote
  #2  
Old 01-31-2004, 01:37 AM
  leon's Avatar 
leon leon is offline
 

X-Wizard
  
Join Date: Mar 2003
Location: Costa Rica
Posts: 1,213
 

Default

Thats done in the /skin1/main/order_info.tpl file, and you are absolutely right about showing that info, not because it looks silly, its because it is using the direct username for the provider which gives a hint to a possible hacker.

Just take these lines out:
Code:
<tr> <td valign="top">{$lng.lbl_provider}</td> <td valign="top">{$products[prod_num].provider}</td> </tr>
__________________
It doesn\'t matter what is done... it is how it is done.
=============================
XCart Version: 3.5.3 -> Dmcigars.com
XCart Version: 4.1.3....
Reply With Quote
  #3  
Old 01-31-2004, 06:53 AM
 
miss_beth miss_beth is offline
 

Advanced Member
  
Join Date: Dec 2003
Posts: 84
 

Default

Thanks! Yes, I thought about the security issue but one of the things on my checklist of "to dos" before opening is to delete all the temp admin accounts I made during setup so none of them would have been valid anyway. Given that, I guess the aesthetics were all I was thinking about.

Wonder why this is included in the file? Seems an odd thing to post to the customer's side (the admin user name, that is).

~Beth
__________________
X-Cart version 3.5.6
PHP 4.3.4
MySQL server 3.23.56
MySQL client 3.23.49
Web server Apache/1.3.31 (Unix)
Operation system Linux
Perl 5.008
Reply With Quote
  #4  
Old 01-31-2004, 02:01 PM
  leon's Avatar 
leon leon is offline
 

X-Wizard
  
Join Date: Mar 2003
Location: Costa Rica
Posts: 1,213
 

Default

I agree, it should have an Admin conditional IF A then show. Or at least have the provider name, not login.
__________________
It doesn\'t matter what is done... it is how it is done.
=============================
XCart Version: 3.5.3 -> Dmcigars.com
XCart Version: 4.1.3....
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:19 AM.

   

 
X-Cart forums © 2001-2020