Show Posts


Messages - ABolm

Pages: [1]
1
Development Help Needed / Re: Add Global Attributes
« on: May 04, 2017, 11:07:50 AM »
Is this a yes or a no  ;D

2
Development Help Needed / Re: Add Global Attributes
« on: May 04, 2017, 08:28:22 AM »
Thanks for the fast reply,

I need to clear some logic questions went into my mind while reading your answer. Usually AbanteCart resource locations and resource names, are sometimes heavily restricted.
Therefore my fist question

1. Create new api-controller inside /public_html/extensions/your_extension_name/admin/controller/api/catalog/attributes.php

Is the .../api/catalog/attributes.php, or any part of it, restricted or just a matter of main.php registration. Exempt the controller naming convention of course, in this case "ControllerApiCatalogAttributes" I think.

3. Use some of api-controllers from core (for ex. public_html/admin/controller/api/index/login.php etc) as example

Can I put the statement to conclusion, any controller necessary to fulfill my internal process logic.

3
Development Help Needed / Add Global Attributes
« on: May 04, 2017, 05:54:03 AM »
Hi,
I'm new to this forum, my name is Andreas.

I've bought a couple of days ago the ExtraTabs extension from the marketplace for use in one of my own extensions.

Now if have the problem to add global attributes via API, the API is -without a doubt- some fine peace of work, but sometimes the "right use" of hooks and sub-controllers thrills me. As there is little or no documentation in source code for specific intricate controllers.

My goal is to setup global attributes and write data into the "global_attibute" table and it's affiliated "value" and "description" tables, from one of my extensions.

So the question is, how do I write the proper php-code for the task mentioned.

I did some Investigations, build a SQL EER chart, but I really don't figure it out on the PHP part.


PS: I must excuse for the somewhat poor EER image
      quality, the maximum individual upload size is
      restricted to 128KB per file. I had to compress
      the jpeg by reducing the image quality.



4
Development Help Needed / Re: Help with PHP code
« on: May 04, 2017, 05:18:52 AM »
What, Where, Why ... ???

My crystal ball is for maintenance this week.
Last week I had ask a similar question and the high concentration of resulting smoke was very dangerous.

So questions like is $x the right variable, are not productive, nor to answer.
Just my 2 ct.

Pages: [1]

Powered by SMFPacks Social Login Mod