Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

OllaCart Point of Sale for osCommerce - ocPOS


Guest

Recommended Posts

I'm trying to update email template for email sent out from POS order create. I'm having hard time to finding file or location of file that require change. Currently when order processing in ollaCart POS it's send email confirmation to email assigned to customer.

 

Did anyone know how to change email template for email sent out for POS order confirmation?

 

Lot's of layouts are in the /includes/functions.php file.

 

Is it the function MailCustomerReceipt you are looking for?

osCommerce user since 2003! :thumbsup:

Link to comment
Share on other sites

There is no template for sending mail, HTML or otherwise, but you could create your own. For example, in the MailCustomerReceipt function, you can see the HTML mail headers being set. A quick Google search will return numerous examples of sending HTML email via PHP.

Edited by jcall
Link to comment
Share on other sites

Thanks, I'll check that. Another question we are using Customer Group Based pricing functionality. Depending on Customer assigned to group, it pull specific price. However OllaCart always bring price based on product price. How and where to change in POS file to activate Customer Group pricing function in POS?

 

PP

Link to comment
Share on other sites

@@jcall

Do you have a github version of this addon?

I'm looking to change some things, such as, how the database credentials are pulled. I want everything to parse from configuration.php

I also like the Bootstrap version, but it doesn't seem to be moving much.

Before I started from scratch, was wondering if you had something already going

Link to comment
Share on other sites

Thanks, I'll check that. Another question we are using Customer Group Based pricing functionality. Depending on Customer assigned to group, it pull specific price. However OllaCart always bring price based on product price. How and where to change in POS file to activate Customer Group pricing function in POS?

 

PP

 

Support for many osC add-ons, including that one, can be added to by anyone to ocPOS but are not built-in. There is nothing ready-made to activate, you'd have to locate the parts of the code that figure out pricing and add in logic to handle that alternate pricing structure.

 

 

 

 

@@jcall

Do you have a github version of this addon?

I'm looking to change some things, such as, how the database credentials are pulled. I want everything to parse from configuration.php

I also like the Bootstrap version, but it doesn't seem to be moving much.

Before I started from scratch, was wondering if you had something already going

 

I don't have any external repos for this, github or otherwise. Feel free to branch it!

 

 

-jared

Link to comment
Share on other sites

  • 2 weeks later...

Hi

 

I wanted to give this a go and got this error:

 

http://pastebin.com/kZht0eaC

 

should have set mode to OSC?:

 

// Product Attribute settings
//  =================================================
define('OSC_ATTRIBUTES_MODE','OSC');
    // Values: 'NONE','OSC','QTP'
    // Default: 'OSC'
    // This determines if and how product attributes are supported. 
    //    NONE = no attribute support
    //    OSC  = standard osCommerce attribute support
    //    QTP  = QTpro attribute support (Must have QTpro feature installed in osC product)
Link to comment
Share on other sites

The pastebin error includes both a code snippet and an error message. I'm guessing that the actual error is this:

Warning: mysql_query() [function.mysql-query]: No such file or directory in /var/www/xn--pizzalg-v1a.dk/public_html/pos1/includes/functions_values.php on line 21

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /var/www/xn--pizzalg-v1a.dk/public_html/pos1/includes/functions_values.php on line 21

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /var/www/xn--pizzalg-v1a.dk/public_html/pos1/includes/functions_values.php on line 21

correct?

 

Did you enter the database details in db.php? Did you run install.php?

 

-jared

Link to comment
Share on other sites

yes i did do the db details.... 

 

let me check the readme... might have missed something there

 

but at least the sql warning tells me i might have missed a path 

Link to comment
Share on other sites

checked the install instructions and did not miss anything

 

 

4 - Access your newly installed ocPOS system in your browser.  If your domain name were www.mydomain.com, and you'd uploaded the ocPOS files to the "pos" directory, then you'd browse to http://www.mydomain.com/pos.  The first access will redirect you to http://www.mydomain.com/pos/install.php to extend the database as needed.

 

that does not happen....

 

i just get to the same page as in the pastebin... above that it writes a whole lot info including database permissions hence i did not include all of it... but i will copy it and replace database info with *****

Link to comment
Share on other sites

You get all of that in your browser? That's not normal -- it should be interpreted by the PHP engine server side. Try creating a text file, name it whatever you want, with the following contents:

<?php phpinfo(); ?>

and upload it to your server. Now access it in your browser. Do you get a nicely formatted page, or something full of text?

 

This is strange -- Do you have other PHP applications working on that server?

 

-jared

Edited by jcall
Link to comment
Share on other sites

nope... i only have that single oscommerce shop on there

 

but yes looks very strange to me, even more strange since the install instructions says to just edit the database stuff and it should run

 

 

are QT required? that is what gets my attention

Link to comment
Share on other sites

I've seen something like this before. It's possible that your file has been corrupted. Try uploading all of the PHP files again, with your FTP client set to ASCII only.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

Go into your host control panel's File Manager, and browse a few .php files (such as install.php). Do they look clean, properly broken up into lines? If not, something went wrong in the file transfer... is this a Windows server by any chance? It looks like possibly a binary transfer of a Linux file to Windows, which will not run.

Link to comment
Share on other sites

Well then, did this happen suddenly, after running OK for some time, or has it always been this way? (fresh install) Did you make any changes at the server level? Could your host have done some upgrade that broke the system? Maybe the server is now misconfigured so that your PHP files are no longer being processed as PHP, but are being delivered as text to the browser.

Link to comment
Share on other sites

always been like this on fresh install

 

no i cant make changes at server level

 

nope, they have not done any changes since they upgraded php 6 months aho

 

PHP pages are served as php.... the oscommerce store and any other php page i build are served correct

Link to comment
Share on other sites

could be a PHP version issue -- I have run it for a while on PHP 5.5 but not tried on 5.6. Even if that were the case, I wouldn't expect your symptoms.

 

If you feel comfortable giving me HTTP+FTP access to that folder I could remote in and see if I can figure out what's going on.

 

-jared

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...