Coder Social home page Coder Social logo

vjanssens / woocommerce-dropbox Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 4.0 262 KB

WooCommerce Dropbox

Home Page: https://www.wordpress.org/plugins/woocommerce-dropbox

License: GNU General Public License v3.0

JavaScript 27.65% PHP 69.84% CSS 2.51%
dropbox php woocommerce wordpress wordpress-plugin

woocommerce-dropbox's People

Contributors

vjanssens avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

woocommerce-dropbox's Issues

Downloadable Variations

Hello Vadiem,
first of all very nice plugin and very useful, just the right thing i was looking for.
After instalation and testing it runs perfectly for "Downloadable Simple Products".
As i set up "Downloadable Variations" instead (http://docs.woothemes.com/document/digitaldownloadable-product-handling/) unfortunately the "Dropbox upload button" had no function at all. After a few tries to set up again, sometimes it has its function and the drobbox window opens up and i coult choose my download file. Then i could save the product settings. But the download link was never functioning. When i then went back into the product settings the chosen download link was not there any more, it was obviously not saved.
Perhaps you have an idea to solve this.
(i am on WP 4.1.1 and Woocommerce 2.3.7)
Fred

Downloads do not work for files with filenames greater than 36 characters.

As reported in the support forum for this plugin, downloads do not work for files with filenames greater than 36 characters. This is because this plugin is improperly setting the value of the download's hidden file hash field when selecting a file. The problem is this line, in assets/js/woocommerce-dropbox.js:

fileRow.find('.file_name > input').val(file.name).change();

This line fills all inputs in the .file_name element, but there are two inputs, the _wc_file_names[] input, which is correct, and a hidden input, _wc_file_hashes[], which is supposed to be blank for new downloads, and is used for the unique ID for the download generated by the server.

This causes problems when WooCommerce attempts to create download permissions, because it uses this field as the download ID, and the database column won't permit more than 36 characters for an ID, so WooCommerce fails to grant download permissions for these downloads.

The solution is to simply only set the file name in the appropriate field:

fileRow.find('input[name="_wc_file_names[]"]').val(file.name).change();

Plugin no longer works

I love your useful plugin and almost my clients are using it. However, recently it doesn't work anymore. Do you have any plans or guides for contributors can create PR and help to maintain this wonderful plugin?

ZIp corrupted

Hi,

I have zip that i store in dropbox and then link yo your extension.

if i use the url link of dropbox my zip is ok.
if i use the link generated by woocommerce dropbox, my zip is corrupted ?

What can i do ?

Thanks

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.