Giter Site home page Giter Site logo

litecart / litecart Goto Github PK

View Code? Open in Web Editor NEW
186.0 24.0 70.0 17.41 MB

LiteCart is a superfast e-commerce platform. Free for everyone to use. Built with the obsession of lightweight using PHP, jQuery HTML 5 and CSS 3.

Home Page: https://www.litecart.net/

License: Other

PHP 87.24% CSS 3.26% JavaScript 3.26% Hack 0.02% Less 4.87% SCSS 0.60% HTML 0.71% Shell 0.04%
litecart e-commerce-platform php jquery html lightweight php-framework

litecart's Introduction

LiteCart®


LiteCart is a lightweight e-commerce platform for online merchants. Developed in PHP, HTML 5, and CSS 3.

LiteCart is a registered trademark, property of founder T. Almroth - LiteCart AB.

How To Install

For an updated version of the upgrade documentation, visit https://wiki.litecart.net/how_to_install

What you need:

  • An Apache2 web server running PHP 5.6 or higher. Latest stable PHP release recommended for best performance.
  • A MySQL 5.7+ or MariaDB database.

Instructions

Please note running your own website requires some common sense of web knowledge. If this is not your area of expertise, ask a friend or collegue to assist you.

  1. Connect to your web host via FTP using your favourite FTP software.

  2. Transfer the contents of the folder public_html/ in this archive (yes the contents inside the folder - not the folder itself). Transfer it to your website root directory. Using subdirectories is supported but not recommended.

    Example:

    /var/www/

    /home/username/public_html/

    C:\xampp\htdocs\

Paths are machine specific, so talk to your web host if you are uncertain where this folder is.

  1. Point your web browser to the URL of your website followed by the subfolder install/ e.g. http://www.mysite.com/install/. If you placed LiteCart in a subfolder of the web root, the path should be something like http://www.mysite.com/litecart/install. The installation page should now load.

  2. Carefully read the instructions on the page. Fill in your details for database, region, etc. Click the Install button when you are ready.

If everything went well LiteCart should be successfully installed.

For community written installation instructions see https://www.litecart.net/en/wiki/how_to_install.

How To Get Started

To get your store up and running, see our step list for best practise.

How To Change The Look Of Your Store

Navigate to the folder ~/includes/templates/default.catalog/ and you will find all HTML content and CSS files to edit. If you want to adapt your work with LESS instead of CSS you will need a LESS compiler. We recommend downloading our Developer Kit that has a preconfigured LESS compiler and JavaScript minifyer.

See our wiki article How To Create a Template.

Links

litecart's People

Contributors

arshidkv12 avatar bloodyknuckles avatar dependabot[bot] avatar iangilfillan avatar litecart avatar litecart-cs avatar mik3yz avatar mishfit avatar pollux avatar postscripter8 avatar s22-tech avatar timint avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

litecart's Issues

Billogram error

Using payment module billogram with invoice price set to 0 the checkout returns the error: "the request has no payload". Version: 2.0

Issues with checkout (v2 alpha dev)

I've tried using checkout page and it has multiple issues.
First it has some issues with customers details input. After saving information it doesn't allow to confirm order. A popup shows up next to the browser "back" button saying "please fill in the field. Not sure what field, because it doesn't show anything else.

I can confirm order after refreshing the page with saved data for customer. After confirming the order order copy email shows some error in both shipping and billing addresses:
Notice: Undefined variable: zone in ~/includes/references/ref_country.inc.php on line 98
Notice: Undefined index: in ~/includes/references/ref_country.inc.php on line 98

Total amount is also incorrect. For me it shows 2x amount minus shipping fee.

Using latest version Firefox. Not sure if this happens in any other browsers.

Admin>Currencies (Update Rates) (v2)

Fatal error: Call to undefined function http_client() in /var/www/litecart2/admin/currencies.app/currencies.inc.php on line 35

( Should possible be "new http_client();" )

payment_due not correct value

in ctrl_order.inc.php on line 437:
if (!empty($order_total['calculate']))

should be
if (!empty($order_total['calculate']) && $order_total['calculate'] == 1 )

Otherwise it add the subtotal to the payment_due and does not add the payment alternative fee.

Version 2.0

Admin "page refresh" v2a

When replacing the image in Admin->edit_category and edit_manufacturers, page does not "update", you must press "F5" to refresh.

Unknown column (v2a)

Writing demo data...

Fatal error: 1054 - Unknown column 'caption' in 'field list' INSERT INTO lc_slides (id, status, language_code, name, caption, `

Sign up error on checkout page

I get this error on checkout page, when clicked on "sign in"

Warning: include(public_html/test/includes/templates/default.catalog/pages/login.ajax.inc.php): failed to open stream: No such file or directory in ~/includes/classes/view.inc.php on line 64
Warning: include(/public_html/test/includes/templates/default.catalog/pages/login.ajax.inc.php): failed to open stream: No such file or directory in ~/includes/classes/view.inc.php on line 64
Warning: include(): Failed opening '/public_html/test/includes/templates/default.catalog/pages/login.ajax.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in ~/includes/classes/view.inc.php on line 64

Fresh install, no modifications. Latest github version.

Wrong path? v2b

Browser: (http 404)
/litecart2/includes/templates/images/loader.svg

PHP Warning upon missing order status

[28-Mar-2017 08:36:00 America/New_York] [static-213-115-97-34.sme.bredbandsbolaget.se] Warning: Passed argument cannot be empty in ~/includes/library/lib_reference.inc.php on line 38
/en/order_process
[28-Mar-2017 08:36:00 America/New_York] [static-213-115-97-34.sme.bredbandsbolaget.se] Notice: Trying to get property of non-object in ~/includes/controllers/ctrl_order.inc.php on line 637
/en/order_process

missing id=logotype in print slip and order copy

in template/pages

  • printable_order_copy.inc

  • printable_packing_slip.inc

     <img src="<?php echo document::link(WS_DIR_IMAGES . 'logotype.png'); ?>" alt="<?php echo settings::get('store_name'); ?>" />
    

should be:
<img id=logotype src="...

otherwise logo is too big in some situations.

Upgrade form 1.3.5 to 1.3.6 Problem

Warning: array_keys() expects parameter 1 to be array, null given in ~/netsajt/orders.app/edit_order.inc.php on line 12
Warning: Invalid argument supplied for foreach() in ~/netsajt/orders.app/edit_order.inc.php on line 12
Warning: array_keys() expects parameter 1 to be array, null given in ~/netsajt/orders.app/edit_order.inc.php on line 16
Warning: Invalid argument supplied for foreach() in ~/netsajt/orders.app/edit_order.inc.php on line 16
Warning: Invalid argument supplied for foreach() in ~/netsajt/orders.app/edit_order.inc.php on line 21

Default language and currency problem

Trumbowyg doesn't load using french language

Reported by theoden.
https://www.litecart.net/forums/5/feature-requests/4628/v2-alpha?page=2

Admin panel /catalog : add a category => wysiwig ok in description
Admin panel /catalog : add a product => no wysiwig in description
Admin panel /catalog : modify an existing category => no wysiwig in description
Admin panel /catalog : modify an existing product => no wysiwig in description
modded edit_category.php => modify an existing category => wysiwig ok in description
but no way yet with product...

Updating a catalog: Dock checkbox remains unchecked after opening category for editing

No matter what values I save in the dock field (menu,tree), the two checkboxes remain unchecked whenever I edit a category. Sample URL = /admin/?app=catalog&doc=edit_category&category_id=5 .

I've installed the Dutch language, but I don't think that should matter. I've not made any changes to the source code of the admin section at all. I first installed 1.36 and then updated to 1.37 and have successfully run the upgrade-script.

In phpMyAdmin I can see that the values are indeed saved (values: [blank], menu, dock or "menu,dock"), but whenever I edit the category the checkboxes remain unchecked. So, after saving the category (and not re-checking the checkboxes) the dock field reverts to "" (blank)..

This is the code in catalog.app/edit_category.inc.php:

<td><strong><?php echo language::translate('title_dock', 'Dock'); ?></strong><br />
              <label><?php echo functions::form_draw_checkbox('dock[]', 'menu', isset($_POST['dock']) ? $_POST['dock'] : 'menu'); ?> <?php echo language::translate('text_dock_in_menu', 'Dock in top menu'); ?></label><br/>
              <label><?php echo functions::form_draw_checkbox('dock[]', 'tree', isset($_POST['dock']) ? $_POST['dock'] : 'tree'); ?> <?php echo language::translate('text_dock_in_tree', 'Dock in category tree'); ?></label>
            </td>

And this is the code in func_form.inc.php:

function form_draw_checkbox($name, $value, $input=true, $parameters='') {
    if ($input === true) $input = form_reinsert_value($name, $value);

    return '<input type="checkbox" name="'. htmlspecialchars($name) .'" value="'. htmlspecialchars($value) .'" '. ($input === $value ? ' checked="checked"' : false) . (($parameters) ? ' ' . $parameters : false) .' />';
  }

I hope you can check it out.. Something seems to go wrong in form_reinsert_value , because somehow the condition $input === $value doesn't seem to match and 'checked="checked"' is not added to the checkbox.

Thanks in advance,

Eduardo

recently viewed products shows disabled products

What were you trying to do?
disable a product

What was expected to happen?
i should not see it in recently viewed products any more.

What was the actual result - what exactly did happen?
i see it in the recently viewed products widget and when i click the link i am taken to a 404 page.

Which LiteCart version are you running?
1.3.7 with patch

new language ideas/problems

what would be best strategy if we dont live in country that has "en" language. since its baked in system we cannot change its code to another language, and we cannot delete it. The best way as I see is add another language (sl) and leave (en). Not the cleanest solution. A lot of people start with playing with categories and products and then later adds new language and has to do all again.

Dont get me wrong, I like the whole system, database solution for languages and interface to change multiple languages for same product.

It there possibility that en could be changed (with BIG WARNING when you want to do that) or is it really baked into the system? Or some other solution. Since I think a lot of people use shop in their language and never need 'en' lang.

Another problem/idea is that when you add second language, you should then go MANUALY over every product/category/status/groups/options and write that lang values. Otherwise you get a lot of errors on frontpage. Easy solution would be that that when you add new language, system ask you if you want to copy all values from 'en' language, so you get clean default values. And since a lot of people wrote half of webpage already under en field they only repair what is left.

I hope I didnt complicated this too much 👍 :)

Lets have a debate about this and find some simple and good solution, if possible.

admin panel - categories - docking properties not 'remembered'

using 1.3.7, downloaded three days ago, I created a category. I specify that I want this to display in the category tree, and click save.

The category DOES display in the category tree.

However, when I Edit the category again, it does NOT show that the checkbox is checked.

Unknown column (v2a)

Fresch install.

Writing demo data...
Fatal error: 1054 - Unknown column 'customer_mobile' in 'field list' INSERT INTO lc_orders (id, uid, /cut/ in /var/www/litecart2/includes/library/lib_database.inc.php on line 220

CSV Export (v2b)

CSV Export (to screen)
Caregories:
Lots of this..
Warning: Illegal string offset 'en' in /admin/catalog.app/csv.inc.php on line 27

Notice: Uninitialized string offset: 0 in /admin/catalog.app/csv.inc.php on line 27

Products:
Fatal error: Cannot use object of type ref_manufacturer as array in /var/www/litecart2/admin/catalog.app/csv.inc.php on line 194

change language (missing name)

This maybe is not a bug, but should be checked not to shown warnings if missing name? But again this situation should not had happen in the first place, since you have to have a name for all languages :)

Which LiteCart version are you running?
change_lang

Missing Column

Fresh install Litecart-dev

// --
Granting admin access for user admin... [OK]

Set platform database version... 2.0

Patching installation with regional data... [OK]

Writing demo data...
Fatal error: 1054 - Unknown column 'mobile' in 'field list' INSERT INTO lc_customers (id, code, status, email, password, tax_id, company, firstname, lastname, address1,
//--

PHP Error in "/admin/?app=countries&doc=countries"

in /admin/?app=countries&doc=countries (v2a)

If disable all countries and save PHP says:

Notice: Undefined offset: 0 in ~/includes/library/lib_customer.inc.php on line 152
Warning: Passed argument cannot be empty in ~/includes/library/lib_reference.inc.php on line 38
Warning: Passed argument cannot be empty in ~/includes/library/lib_reference.inc.php on line 38

Could be a message instead, like "You must at least enable one country" :-)

Unknown column (v2a)

Install v2a w/o demodata and admin->add slide

Fatal error: 1054 - Unknown column 'languages' in 'field list' update litecart2.lc_slides set status = '1', languages = '', name = 'test'

adding new order from admin error

I chose default client ACME and yellow duck (second option) gives this error, when you save it:

	15	ACME Corp. 0000000000	Warning: Passed argument cannot be empty in ~/includes/library/lib_reference.inc.php on line 38

Notice: Trying to get property of non-object in ~/admin/orders.app/orders.inc.php on line 127

  • $18.00 USD Unprocessed Apr 4 2017 10:22 AM

PHP notice on orders (v2a)

  1. Disable USD in admin->currencies
  2. Go to admin->order (and other places)

Notice: Undefined index: USD in ~/includes/library/lib_currency.inc.php on line 171
Notice: Undefined index: USD in ~/includes/library/lib_currency.inc.php on line 174
Notice: Undefined index: USD in ~/includes/library/lib_currency.inc.php on line 174

Typo csv.inc.php

"Max" :-)

case 'Max': echo functions::csv_encode($csv, $_POST['delimiter'], $_POST['enclosure'], $_POST['escapechar'], $_POST['charset'], "\n");

Unknown column (v2-a)

Making order..

Fatal error: 1054 - Unknown column 'shipping_phone' in 'field list' update litecart2.lc_orders set
/cut/
shipping_phone = '4545566789'
/cut/
in ~/includes/library/lib_database.inc.php on line 220

Error in modules (v2b)

Admin > Modules > Job Modules

  1. Install error reporter and save
  2. Press "Run now"
  3. Go back to Job Modules and edit module
    --
    Fatal error: Cannot use object of type ctrl_module as array in /var/www/litecart2/admin/modules.app/edit_module.inc.php on line 125

can not change password

I want to change my password, but always got the "The new password does not match the confirmed password." error.
I am sure the two items were offered same.
Please check the problem, thank you very much!

Typo in search.inc.php

language::translate('title_all Products', 'All Products'));

Should it be 'title_all_products' ?

Possible typo in default.catalog/config.inc.php ?

Code begin with ':' ?

'title' => language::translate(__CLASS__.':title_product_modal_window', 'Product Modal Window'), 'description' => language::translate(__CLASS__.':description_product_modal_window', 'Enables or disables 'title' => language::translate(__CLASS__.':title_sidebar_parallax_effect', 'Sidebar Parallax Effect'), 'description' => language::translate(__CLASS__.':description_sidebar_parallax_effect', 'Enables or disables

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.